summaryrefslogtreecommitdiff
path: root/netdissect-stdinc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-28 21:09:03 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-28 21:09:03 -0800
commitbe658698f958010d2eed8e9ae8a88ec81e844e74 (patch)
treed24888a287ec3fab5cea40e8e045b2d7221e38df /netdissect-stdinc.h
parentc640a96c6a3dc462cef9ca25abffcd5d294b40c6 (diff)
downloadtcpdump-be658698f958010d2eed8e9ae8a88ec81e844e74.tar.gz
Include funcattrs.h before you use stuff in it.
Diffstat (limited to 'netdissect-stdinc.h')
-rw-r--r--netdissect-stdinc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h
index 1324ae18..fa7a790c 100644
--- a/netdissect-stdinc.h
+++ b/netdissect-stdinc.h
@@ -301,6 +301,11 @@ typedef char* caddr_t;
#endif
/*
+ * Function attributes, for various compilers.
+ */
+#include "funcattrs.h"
+
+/*
* On Windows, snprintf(), with that name and with C99 behavior - i.e.,
* guaranteeing that the formatted string is null-terminated - didn't
* appear until Visual Studio 2015. Prior to that, the C runtime had
@@ -486,11 +491,6 @@ struct in6_addr {
*/
/*
- * Function attributes, for various compilers.
- */
-#include "funcattrs.h"
-
-/*
* Statement attributes, for various compilers.
*
* This was introduced sufficiently recently that compilers implementing