Skip to content

Commit

Permalink
简化OSHeader.h中Windows头文件包含
Browse files Browse the repository at this point in the history
  • Loading branch information
lailongwei committed Sep 6, 2024
1 parent 6115e68 commit 01383f3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions llbc/include/llbc/common/OSHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@

// OS header files.
#if LLBC_TARGET_PLATFORM_WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#ifndef WINVER
#define WINVER 0x600
#endif

#include <Windows.h>
#include <Winsock2.h>
#include <Winsock2.h> // Has been included Windows.h.
#include <Mswsock.h>
#include <Ws2tcpip.h>
#include <process.h>
Expand Down Expand Up @@ -117,9 +108,5 @@

// Enable posix support, if in WIN32 platform.
#if LLBC_TARGET_PLATFORM_WIN32
#ifndef _POSIX_
#define _POSIX_
#endif // !_POSIX_
#endif // LLBC_TARGET_PLATFORM_WIN32


0 comments on commit 01383f3

Please sign in to comment.