aboutsummaryrefslogtreecommitdiff
path: root/src/vmstate.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-05-13 16:23:10 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-05-13 16:23:10 +0200
commit2d763d213865e916092d4065fbe5bc206f30e32f (patch)
treefd9583c48a7bf9e5b43ab7bf5fd02e9381e5a632 /src/vmstate.h
parent3ee97215ab2479e998071d7b4d1911de794a3107 (diff)
downloadslirp-2d763d213865e916092d4065fbe5bc206f30e32f.zip
slirp-2d763d213865e916092d4065fbe5bc206f30e32f.tar.gz
slirp-2d763d213865e916092d4065fbe5bc206f30e32f.tar.bz2
vmstate: only enable when building under GNU Cmsvc
To be able to use typeof. Fixes #24604
Diffstat (limited to 'src/vmstate.h')
-rw-r--r--src/vmstate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vmstate.h b/src/vmstate.h
index e3e2459..64dd256 100644
--- a/src/vmstate.h
+++ b/src/vmstate.h
@@ -39,6 +39,9 @@
#ifndef VMSTATE_H_
#define VMSTATE_H_
+#ifdef __GNUC__
+#define HAVE_VMSTATE 1
+
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
@@ -392,4 +395,6 @@ extern const VMStateInfo slirp_vmstate_info_tmp;
.flags = VMS_END, \
}
-#endif
+#endif /* __GNUC__ */
+
+#endif /* VMSTATE_H_ */