summaryrefslogtreecommitdiff
path: root/numpy/random/src
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2020-11-17 08:46:41 +0000
committerSayed Adel <seiko@imavr.com>2020-11-17 22:03:44 +0000
commitcba1d6f1cab31b1dca0e7ec7e6ee40ead786ca08 (patch)
tree0cc71a408ccd28cf91f2b210bcb90f736e4f8eee /numpy/random/src
parent5da4a8e1835a11d5a03b715e9c0afe3bb96c883b (diff)
downloadnumpy-cba1d6f1cab31b1dca0e7ec7e6ee40ead786ca08.tar.gz
BLD: Enable Werror=undef in travis
Diffstat (limited to 'numpy/random/src')
-rw-r--r--numpy/random/src/pcg64/pcg64.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/random/src/pcg64/pcg64.h b/numpy/random/src/pcg64/pcg64.h
index 2a7217dd9..31899cbc1 100644
--- a/numpy/random/src/pcg64/pcg64.h
+++ b/numpy/random/src/pcg64/pcg64.h
@@ -57,11 +57,11 @@
#define inline __forceinline
#endif
-#if __GNUC_GNU_INLINE__ && !defined(__cplusplus)
+#if defined(__GNUC_GNU_INLINE__) && !defined(__cplusplus)
#error Nonstandard GNU inlining semantics. Compile with -std=c99 or better.
#endif
-#if __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif
@@ -255,7 +255,7 @@ typedef pcg_state_setseq_128 pcg64_random_t;
#define pcg64_advance_r pcg_setseq_128_advance_r
#define PCG64_INITIALIZER PCG_STATE_SETSEQ_128_INITIALIZER
-#if __cplusplus
+#ifdef __cplusplus
}
#endif