1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Replace WIN32 macro with _WIN32.

This commit is contained in:
Matias Fontanini
2015-05-02 16:25:59 -07:00
parent a7a63483df
commit a607ab380c
28 changed files with 108 additions and 110 deletions

View File

@@ -27,7 +27,7 @@
*
*/
#ifndef WIN32
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <stdexcept>
@@ -49,7 +49,7 @@ PacketWriter::~PacketWriter() {
void PacketWriter::write(PDU &pdu) {
PDU::serialization_type buffer = pdu.serialize();
timeval tm;
#ifndef WIN32
#ifndef _WIN32
gettimeofday(&tm, 0);
#else
// fixme