diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-16 13:50:13 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-16 13:50:13 -0700 |
commit | 2820156fbd4b0213ca015216d8cd97c31b503c8c (patch) | |
tree | ac6593b99ec9ee226b3ccc323164ce80de158516 /epan/dissectors/packet-udp.h | |
parent | 205e77d404244461f2b311a4285dfeeb55117502 (diff) |
Move still *more* headers outside of extern "C".
If a header declares a function, or anything else requiring the extern
"C" decoration, have it wrap the declaration itself; don't rely on the
header itself being included inside extern "C".
Diffstat (limited to 'epan/dissectors/packet-udp.h')
-rw-r--r-- | epan/dissectors/packet-udp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-udp.h b/epan/dissectors/packet-udp.h index 7b9e7055f4..adbbf2c2fd 100644 --- a/epan/dissectors/packet-udp.h +++ b/epan/dissectors/packet-udp.h @@ -11,14 +11,14 @@ #ifndef __PACKET_UDP_H__ #define __PACKET_UDP_H__ -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - #include "ws_symbol_export.h" #include <epan/conversation.h> +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* UDP structs and definitions */ typedef struct _e_udphdr { guint16 uh_sport; |