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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user