sbinet / go-python

naive go bindings to the CPython2 C-API
Other
1.53k stars 139 forks source link

Fix "_POSIX_C_SOURCE" redefined warnings. #79

Closed huzilin closed 5 years ago

huzilin commented 5 years ago

Fix "_POSIX_C_SOURCE" redefined warnings.

# github.com/sbinet/go-python
In file included from /usr/include/python2.7/pyconfig.h:6:0,
                 from /usr/include/python2.7/Python.h:8,
                 from ../github.com/sbinet/go-python/go-python.h:4,
                 from ../github.com/sbinet/go-python/file.go:5:
/usr/include/python2.7/pyconfig-64.h:1188:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from /usr/include/stdio.h:27:0,
                 from ../github.com/sbinet/go-python/file.go:4:
/usr/include/features.h:231:0: note: this is the location of the previous definition
 #  define _POSIX_C_SOURCE 200809L
 ^
sbinet commented 5 years ago

thanks!