Skip to content

Commit

Permalink
defining the macro _GNU_SOURCE appears to create troubles in some cas…
Browse files Browse the repository at this point in the history
…es. (#693)

* defining the macro _GNU_SOURCE appears to create troubles in some cases.

* definining _GNU_SOURCE can cause problems.

---------

Co-authored-by: Daniel Lemire <[email protected]>
  • Loading branch information
lemire and Daniel Lemire authored Feb 24, 2025
1 parent cf9765f commit 2a6878b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/roaring/portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
#ifndef CROARING_INCLUDE_PORTABILITY_H_
#define CROARING_INCLUDE_PORTABILITY_H_

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif // _GNU_SOURCE
// Users who need _GNU_SOURCE should define it?
// #ifndef _GNU_SOURCE
// #define _GNU_SOURCE 1
// #endif // _GNU_SOURCE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif // __STDC_FORMAT_MACROS
Expand Down

0 comments on commit 2a6878b

Please sign in to comment.