=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: include: Don't redefine _GNU_SOURCE.

Alexandre Julliard julliard at winehq.org
Fri Sep 20 14:21:30 CDT 2013


Module: wine
Branch: master
Commit: 128bfdf6daee613aae909ecdfc619d82ecbb4106
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=128bfdf6daee613aae909ecdfc619d82ecbb4106

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Sep 19 20:50:55 2013 +0200

include: Don't redefine _GNU_SOURCE.

---

 include/wine/port.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index 09dbf61..c5359dd 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -29,7 +29,9 @@
 # error You must include port.h before all other headers
 #endif
 
-#define _GNU_SOURCE  /* for pread/pwrite */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE  /* for pread/pwrite */
+#endif
 #include <fcntl.h>
 #include <math.h>
 #include <sys/types.h>




More information about the wine-cvs mailing list