summary refs log tree commit diff stats
path: root/include/qemu/bswap.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-01-10 09:19:31 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-02-10 14:12:06 +0100
commitd76aa73fad1f64c192856e1420ad0756f5e3b778 (patch)
treedcc9592f942d81a16f10cf433fa748f532015e85 /include/qemu/bswap.h
parent808d15b383fecb3ec540186f68767a211c756c5a (diff)
downloadfocaccia-qemu-d76aa73fad1f64c192856e1420ad0756f5e3b778.tar.gz
focaccia-qemu-d76aa73fad1f64c192856e1420ad0756f5e3b778.zip
remove unnecessary extern "C" blocks
A handful of header files in QEMU are wrapped with extern "C" blocks.
These are not necessary: there are C++ source files anymore in QEMU,
and even where there were some, they did not include most of these
files anyway.

Remove them for consistency.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/bswap.h')
-rw-r--r--include/qemu/bswap.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h
index 3cbe52246b..b1650daedf 100644
--- a/include/qemu/bswap.h
+++ b/include/qemu/bswap.h
@@ -1,10 +1,6 @@
 #ifndef BSWAP_H
 #define BSWAP_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #undef  bswap16
 #define bswap16(_x) __builtin_bswap16(_x)
 #undef  bswap32
@@ -395,8 +391,4 @@ DO_STN_LDN_P(be)
 #undef le_bswaps
 #undef be_bswaps
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* BSWAP_H */