]> The Tcpdump Group git mirrors - tcpdump/blobdiff - machdep.c
Add EXTRACT_ calls.
[tcpdump] / machdep.c
index 1f0861611326b7e9828fad42072d56097c44aff3..df16c6e2708f4ffee8ff2009249b7e62a8891005 100644 (file)
--- a/machdep.c
+++ b/machdep.c
  */
 #include <netdissect-stdinc.h>
 
-#ifndef HAVE___ATTRIBUTE__
-#define __attribute__(x)
-#endif /* HAVE___ATTRIBUTE__ */
-
 #ifdef __osf__
 #include <sys/sysinfo.h>
 #include <sys/proc.h>
 
 #if !defined(HAVE_SNPRINTF)
-int snprintf(char *, size_t, const char *, ...)
-#ifdef __ATTRIBUTE___FORMAT_OK
-     __attribute__((format(printf, 3, 4)))
-#endif /* __ATTRIBUTE___FORMAT_OK */
-     ;
+int snprintf(char *, size_t, const char *, ...) PRINTFLIKE(3, 4);
 #endif /* !defined(HAVE_SNPRINTF) */
 #endif /* __osf__ */