Skip to content

Commit 2a6878b

Browse files
lemireDaniel Lemire
and
Daniel Lemire
authored
defining the macro _GNU_SOURCE appears to create troubles in some cases. (#693)
* defining the macro _GNU_SOURCE appears to create troubles in some cases. * definining _GNU_SOURCE can cause problems. --------- Co-authored-by: Daniel Lemire <dlemire@lemire.me>
1 parent cf9765f commit 2a6878b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/roaring/portability.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
#ifndef CROARING_INCLUDE_PORTABILITY_H_
1717
#define CROARING_INCLUDE_PORTABILITY_H_
1818

19-
#ifndef _GNU_SOURCE
20-
#define _GNU_SOURCE 1
21-
#endif // _GNU_SOURCE
19+
// Users who need _GNU_SOURCE should define it?
20+
// #ifndef _GNU_SOURCE
21+
// #define _GNU_SOURCE 1
22+
// #endif // _GNU_SOURCE
2223
#ifndef __STDC_FORMAT_MACROS
2324
#define __STDC_FORMAT_MACROS 1
2425
#endif // __STDC_FORMAT_MACROS

0 commit comments

Comments
 (0)