mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Windows: Use CommonWindows more consistently.
Also, make sure WinSock2.h is included beforehand where it's needed.
This commit is contained in:
parent
da2e722794
commit
9d22297a90
@ -7,11 +7,7 @@
|
||||
// Separated this stuff into its own file so we don't get Windows.h included if all we want is the thin3d declarations.
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#include "Common/CommonWindows.h"
|
||||
#include <D3Dcommon.h>
|
||||
struct IDirect3DDevice9;
|
||||
struct IDirect3D9;
|
||||
|
@ -49,6 +49,7 @@
|
||||
#ifdef _WIN32
|
||||
#include "Common/CommonWindows.h"
|
||||
#include <sys/stat.h>
|
||||
#undef FILE_OPEN
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
|
@ -22,6 +22,7 @@
|
||||
// All credit goes to him!
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <WinSock2.h>
|
||||
#include "Common/CommonWindows.h"
|
||||
#endif
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <sys/types.h>
|
||||
// Net stuff
|
||||
#if defined(_WIN32)
|
||||
#include <WinSock2.h>
|
||||
#include <WS2tcpip.h>
|
||||
#else
|
||||
#include <sys/socket.h>
|
||||
|
@ -16,6 +16,7 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <WinSock2.h>
|
||||
#include "Common/CommonWindows.h"
|
||||
#endif
|
||||
|
||||
|
@ -34,9 +34,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WIN32_CAMERA
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include "Common/CommonWindows.h"
|
||||
#include "Windows/CaptureDevice.h"
|
||||
#endif
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WIN32_MICROPHONE
|
||||
#define NOMINMAX
|
||||
#include "Common/CommonWindows.h"
|
||||
#include "Windows/CaptureDevice.h"
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <algorithm>
|
||||
|
||||
// For shell links
|
||||
#include "windows.h"
|
||||
#include "Common/CommonWindows.h"
|
||||
#include "winnls.h"
|
||||
#include "shobjidl.h"
|
||||
#include "objbase.h"
|
||||
|
Loading…
Reference in New Issue
Block a user