1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Added undef directive to avoid compilation error on windows.

This commit is contained in:
Matias Fontanini
2014-07-01 17:06:39 -03:00
parent c25d4738b4
commit dd2ed5daa4
2 changed files with 12 additions and 4 deletions

View File

@@ -30,9 +30,17 @@
#ifndef TINS_ICMP_H
#define TINS_ICMP_H
#ifdef TIMESTAMP_REQUEST
#undef TIMESTAMP_REQUEST
#endif // TIMESTAMP_REQUEST
// Windows likes to define macros with not-so-common-names, which break
// this code
#ifdef WIN32
#ifdef TIMESTAMP_REQUEST
#undef TIMESTAMP_REQUEST
#endif // TIMESTAMP_REQUEST
#ifdef TIMESTAMP_REPLY
#undef TIMESTAMP_REPLY
#endif // TIMESTAMP_REPLY
#endif // WIN32
#include "macros.h"
#include "pdu.h"