diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-13 16:23:10 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-13 16:23:10 +0200 |
commit | 2d763d213865e916092d4065fbe5bc206f30e32f (patch) | |
tree | fd9583c48a7bf9e5b43ab7bf5fd02e9381e5a632 /src/vmstate.h | |
parent | 3ee97215ab2479e998071d7b4d1911de794a3107 (diff) | |
download | slirp-msvc.zip slirp-msvc.tar.gz slirp-msvc.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.h | 7 |
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_ */ |