Skip to content

Commit 1912de6

Browse files
authored
Fix header file name issue when cross-compiling on Windows (#317)
1 parent 2c25a74 commit 1912de6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

trantor/utils/AsyncFileLogger.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <sys/prctl.h>
2323
#endif
2424
#else
25-
#include <Windows.h>
25+
#include <windows.h>
2626
#endif
2727
#include <string.h>
2828
#include <algorithm>
@@ -64,7 +64,7 @@ AsyncFileLogger::~AsyncFileLogger()
6464
}
6565
while (!writeBuffers_.empty())
6666
{
67-
StringPtr tmpPtr = (StringPtr &&) writeBuffers_.front();
67+
StringPtr tmpPtr = (StringPtr &&)writeBuffers_.front();
6868
writeBuffers_.pop();
6969
writeLogToFile(tmpPtr);
7070
}
@@ -162,7 +162,7 @@ void AsyncFileLogger::logThreadFunc()
162162

163163
while (!tmpBuffers_.empty())
164164
{
165-
StringPtr tmpPtr = (StringPtr &&) tmpBuffers_.front();
165+
StringPtr tmpPtr = (StringPtr &&)tmpBuffers_.front();
166166
tmpBuffers_.pop();
167167
writeLogToFile(tmpPtr);
168168
tmpPtr->clear();

trantor/utils/Date.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <iostream>
2222
#include <string.h>
2323
#ifdef _WIN32
24-
#include <WinSock2.h>
24+
#include <winsock2.h>
2525
#include <time.h>
2626
#endif
2727

trantor/utils/Utilities.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "Utilities.h"
1616
#ifdef _WIN32
17-
#include <Windows.h>
17+
#include <windows.h>
1818
#include <ntsecapi.h>
1919
#include <algorithm>
2020
#else // _WIN32

trantor/utils/crypto/md5.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
typedef unsigned char BYTE; // 8-bit byte
2222
typedef unsigned int WORD; // 32-bit word, change to "long" for 16-bit machines
2323
#else
24-
#include <Windows.h>
24+
#include <windows.h>
2525
#endif
2626

2727
typedef struct

trantor/utils/crypto/sha256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef _WIN32
1414
#include <stddef.h>
1515
#else
16-
#include <Windows.h>
16+
#include <windows.h>
1717
#endif
1818

1919
/****************************** MACROS ******************************/

0 commit comments

Comments
 (0)