mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46:45 +08:00
Compare commits
2 Commits
a0c7725a14
...
c5302d00ab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5302d00ab | ||
|
|
72c4b5abc4 |
@ -1,6 +1,10 @@
|
|||||||
/// \brief To create a basic Windows command line program.
|
/// \brief To create a basic Windows command line program.
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
/// \brief To create a basic Windows Service in C++.
|
/// \brief To create a basic Windows Service in C++.
|
||||||
/// \see https://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
|
/// \see https://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,11 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
#include "libipc/utility/scope_guard.h"
|
#include "libipc/utility/scope_guard.h"
|
||||||
|
|||||||
@ -3,7 +3,11 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <system_error>
|
#include <system_error>
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "libipc/utility/log.h"
|
#include "libipc/utility/log.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@ -37,7 +37,11 @@ TEST(PThread, Robust) {
|
|||||||
pthread_mutex_destroy(&mutex);
|
pthread_mutex_destroy(&mutex);
|
||||||
}
|
}
|
||||||
#elif defined(IPC_OS_WINDOWS_)
|
#elif defined(IPC_OS_WINDOWS_)
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
TEST(PThread, Robust) {
|
TEST(PThread, Robust) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user