Fix #784: support msys2 compilation

This commit is contained in:
Arun Prakash Jana 2020-11-18 04:07:03 +05:30
parent aefe962182
commit d38f4b13d4
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifdef __linux__ #if defined(__linux__) || defined(MINGW) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__)
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
#endif #endif