summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-07 09:33:02 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-07 09:33:02 -0500
commita08a5e6f15f37e3656872751796b6155913fbb6b (patch)
treedfd22812d1f8bcc6dffb99ece8c210565eb373bd /compiler.h
parentea1df3fc35f9a87875f4566fa442e4e28f88b017 (diff)
downloadgpsd-a08a5e6f15f37e3656872751796b6155913fbb6b.tar.gz
Prevent splint from coughing up a hairball.
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
index 74b8ecef..0e704527 100644
--- a/compiler.h
+++ b/compiler.h
@@ -31,9 +31,11 @@
assert(locresult != -23); \
} while (0)
+#ifndef S_SPLINT_S
#ifdef HAVE_STDATOMIC_H
#include <stdatomic.h>
#endif /* HAVE_STDATOMIC_H */
+#endif /* S_SPLINT_S */
static /*@unused@*/ inline void memory_barrier(void)
/* prevent instruction reordering across any call to this function */