mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
Merge pull request #157 from cscd98/mingw
mingw: use lower case windows.h
This commit is contained in:
commit
c5302d00ab
@ -1,6 +1,10 @@
|
||||
/// \brief To create a basic Windows command line program.
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
/// \brief To create a basic Windows Service in C++.
|
||||
/// \see https://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <tchar.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@ -4,7 +4,11 @@
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "libipc/utility/log.h"
|
||||
#include "libipc/utility/scope_guard.h"
|
||||
|
||||
@ -3,7 +3,11 @@
|
||||
#include <cstdint>
|
||||
#include <system_error>
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "libipc/utility/log.h"
|
||||
|
||||
|
||||
@ -2,7 +2,11 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "libipc/utility/log.h"
|
||||
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include <type_traits>
|
||||
#include <string>
|
||||
|
||||
@ -37,7 +37,11 @@ TEST(PThread, Robust) {
|
||||
pthread_mutex_destroy(&mutex);
|
||||
}
|
||||
#elif defined(IPC_OS_WINDOWS_)
|
||||
#if defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <tchar.h>
|
||||
|
||||
TEST(PThread, Robust) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user