Commits

Lenard Lindstrom  committed 38a814e

Remove distracting '"_POSIX_C_SOURCE" redefined' GCC warnings from linux builds.

  • Participants
  • Parent commits 2336cf3

Comments (0)

Files changed (3)

File src/pygame.h

 
 #endif
 
+/* This is unconditionally defined in Python.h */
+#if defined(_POSIX_C_SOURCE)
+#undef _POSIX_C_SOURCE
+#endif
+
 #include <Python.h>
 
 // No signal()
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
+/* This is unconditionally defined in Python.h */
+#if defined(_POSIX_C_SOURCE)
+#undef _POSIX_C_SOURCE
+#endif
+
 #include <Python.h>
 
 /* Handle clipboard text and data in arbitrary formats */

File src/surface.h

 #ifndef SURFACE_H
 #define SURFACE_H
 
+/* This is defined in SDL.h */
+#if defined(_POSIX_C_SOURCE)
+#undef _POSIX_C_SOURCE
+#endif
+
 #include <SDL.h>
 #include "pygame.h"