diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-03-23 03:58:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-03-23 03:58:59 +0000 |
commit | 8865cae8112f7ee168f31a2969c00d148d249c89 (patch) | |
tree | 05bea48483591780dac23ab4796db80148d188ad | |
parent | e9b532370cb9ea9a2ae4e9070440b20fe666456b (diff) |
Move the include of "snprintf.h" after a bunch of other includes, so
that "size_t" will be defined before it's included (it uses "size_t").
svn path=/trunk/; revision=225
-rw-r--r-- | packet-tcp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 6183a02421..7c3cbe64c8 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.16 1999/03/23 03:14:43 gram Exp $ + * $Id: packet-tcp.c,v 1.17 1999/03/23 03:58:59 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -27,15 +27,6 @@ # include "config.h" #endif -#ifdef NEED_SNPRINTF_H -# ifdef HAVE_STDARG_H -# include <stdarg.h> -# else -# include <varargs.h> -# endif -# include "snprintf.h" -#endif - #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif @@ -51,6 +42,15 @@ #include "follow.h" #include "util.h" +#ifdef NEED_SNPRINTF_H +# ifdef HAVE_STDARG_H +# include <stdarg.h> +# else +# include <varargs.h> +# endif +# include "snprintf.h" +#endif + #ifndef __PACKET_IP_H__ #include "packet-ip.h" #endif |