diff options
author | test <test@shiny.localdomain> | 2009-07-16 14:57:49 -0700 |
---|---|---|
committer | test <test@shiny.localdomain> | 2009-07-16 14:57:49 -0700 |
commit | 2edc764e543f33138994d0f957859de31f946928 (patch) | |
tree | 71868777738ae519a152964cd70dea82e6620404 | |
parent | ded21af43b3506c1d254c0ffbd565019e757a20e (diff) | |
download | libpcap-2edc764e543f33138994d0f957859de31f946928.tar.gz |
Added an #ifdef directive to allow compilation of the WinPcap samples under VC2008.
-rw-r--r-- | pcap-stdinc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pcap-stdinc.h b/pcap-stdinc.h index 870e3349..41760417 100644 --- a/pcap-stdinc.h +++ b/pcap-stdinc.h @@ -1,6 +1,6 @@ /* - * Copyright (c) 2002 - 2003 - * NetGroup, Politecnico di Torino (Italy) + * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy) + * Copyright (c) 2005 - 2009 CACE Technologies, Inc. Davis (California) * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,9 +60,12 @@ #define caddr_t char* +#if _MSC_VER < 1500 #define snprintf _snprintf #define vsnprintf _vsnprintf #define strdup _strdup +#endif + #define inline __inline #ifdef __MINGW32__ |