Skip to content

Commit 029d1e1

Browse files
committed
Avoid redefinition of _GNU_SOURCE
* _GNU_SOURCE may have been set by the application and redefinition trigger warnings or error with -Werror * Fix for 220f6a1
1 parent ea8e208 commit 029d1e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: openblas_config_template.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ typedef int blasint;
9999

100100
/* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */
101101
#ifdef OPENBLAS_OS_LINUX
102-
#define _GNU_SOURCE
102+
#ifndef _GNU_SOURCE
103+
#define _GNU_SOURCE
104+
#endif
103105
#include <sched.h>
104106
#endif

0 commit comments

Comments
 (0)