the-moisrex / liburing-hdr-only

The header only implementation of the liburing library
MIT License
18 stars 1 forks source link

`_POSIX_C_SOURCE` macro redefined #14

Open the-moisrex opened 11 months ago

the-moisrex commented 11 months ago

_POSIX_C_SOURCE is a bit tricky here!

/liburing.h:13:9: warning: '_POSIX_C_SOURCE' macro redefined [-Wmacro-redefined]
#define _POSIX_C_SOURCE 200112L
        ^
/usr/include/features.h:292:10: note: previous definition is here
# define _POSIX_C_SOURCE        200809L
         ^
In file included from /webpp/tests/io_test.cpp:6:
In file included from /webpp/tests/../webpp/io/io_uring/io_uring.hpp:9:
In file included from /webpp/tests/../webpp/io/io_uring/../../libs/ioring.hpp:10:
In file included from /webpp/build-dev-clang/_deps/liburing-src/liburing/liburing-hdr-only.h:8:
/liburing.h:14:9: warning: '_DEFAULT_SOURCE' macro redefined [-Wmacro-redefined]
#define _DEFAULT_SOURCE
        ^
/usr/include/features.h:238:10: note: previous definition is here
# define _DEFAULT_SOURCE        1
         ^