aboutsummaryrefslogtreecommitdiffstats
path: root/ghw/libghw.h
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-30 21:08:26 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-30 21:08:26 +0200
commit2a33708a633734c0ac463ce5ec922009475525e6 (patch)
treef542516b6b292369512954bb1e4bc8f1a73a7383 /ghw/libghw.h
parent9fb3ee1a53f26909a14090a7f7fc70bf149a670e (diff)
downloadghdl-2a33708a633734c0ac463ce5ec922009475525e6.tar.gz
ghdl-2a33708a633734c0ac463ce5ec922009475525e6.tar.bz2
ghdl-2a33708a633734c0ac463ce5ec922009475525e6.zip
ghw: avoid a warning
Diffstat (limited to 'ghw/libghw.h')
-rw-r--r--ghw/libghw.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ghw/libghw.h b/ghw/libghw.h
index a6d22d0c0..4668b9252 100644
--- a/ghw/libghw.h
+++ b/ghw/libghw.h
@@ -30,8 +30,9 @@
in stdint.h. Header inttypes.h includes stdint.h and provides macro for
printf and co specifiers. Use it if known to be available. */
-#if defined(__cplusplus) || \
- (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
+#if defined(__cplusplus) || \
+ defined(__linux__) || \
+ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
defined(HAVE_INTTYPES_H)
/* Use C99 standard header. */
#include <inttypes.h>