Skip to content

Commit

Permalink
Restored _WIN32 define check
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 11, 2019
1 parent 3cfe48e commit fc4c15a
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion guisan-dev/include/guisan/opengl/openglimage.hpp
Expand Up @@ -57,7 +57,7 @@
#ifndef GCN_OPENGLIMAGE_HPP
#define GCN_OPENGLIMAGE_HPP

#if defined (_WIN32_)
#if defined (_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#if defined (DELETE)
Expand Down
2 changes: 1 addition & 1 deletion guisan-dev/src/opengl/openglgraphics.cpp
Expand Up @@ -60,7 +60,7 @@

#include "guisan/opengl/openglgraphics.hpp"

#if defined (_WIN32_)
#if defined (_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/archivers/7z/7zFile.h
Expand Up @@ -4,7 +4,7 @@
#ifndef __7Z_FILE_H
#define __7Z_FILE_H

#ifdef _WIN32_
#ifdef _WIN32
#define USE_WINDOWS_FILE
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/bsdsocket.cpp
Expand Up @@ -1591,7 +1591,7 @@ static uae_u32 REGPARAM2 bsdsocklib_SocketBaseTagList(TrapContext *ctx)

static uae_u32 REGPARAM2 bsdsocklib_GetSocketEvents(TrapContext *ctx)
{
#ifdef _WIN32_
#ifdef _WIN32
struct socketbase *sb = get_socketbase(ctx);
int i;
int flags;
Expand Down
2 changes: 1 addition & 1 deletion src/filesys.cpp
Expand Up @@ -7508,7 +7508,7 @@ void filesys_install_code (void)
afterdos_initcode = filesys_get_entry(8);
}

#ifdef _WIN32_
#ifdef _WIN32
#include "od-win32/win32_filesys.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/fsdb.cpp
Expand Up @@ -41,7 +41,7 @@ TCHAR *nname_begin (TCHAR *nname)
return nname;
}

#ifndef _WIN32_
#ifndef _WIN32
/* Find the name REL in directory DIRNAME. If we find a file that
* has exactly the same name, return REL. If we find a file that
* has the same name when compared case-insensitively, return a
Expand Down
4 changes: 2 additions & 2 deletions src/include/bsdsocket.h
Expand Up @@ -29,7 +29,7 @@ extern void deinit_socket_layer (void);

#define MAXADDRLEN 256

#ifdef _WIN32_
#ifdef _WIN32
#define SOCKET_TYPE SOCKET
#else
#define SOCKET_TYPE int
Expand Down Expand Up @@ -70,7 +70,7 @@ struct socketbase {

unsigned int *mtable; /* window messages allocated for asynchronous event notification */
/* host-specific fields below */
#ifdef _WIN32_
#ifdef _WIN32
SOCKET_TYPE sockAbort; /* for aborting WinSock2 select() (damn Microsoft) */
SOCKET_TYPE sockAsync; /* for aborting WSBAsyncSelect() in window message handler */
int needAbort; /* abort flag */
Expand Down
4 changes: 2 additions & 2 deletions src/include/uae/string.h
Expand Up @@ -7,15 +7,15 @@
#include "uae/types.h"
#include <string.h>

#ifdef _WIN32_
#ifdef _WIN32
/* Make sure the real _tcs* functions are already declared before we
* re-define them below. */
#include <tchar.h>
#include <wchar.h>
#include <stdlib.h>
#endif

#ifdef _WIN32_
#ifdef _WIN32
/* Using the real _tcs* functions */
#else
#define _istdigit isdigit
Expand Down
2 changes: 1 addition & 1 deletion src/include/uae/types.h
Expand Up @@ -53,7 +53,7 @@ typedef uae_u32 uaecptr;

typedef char uae_char;

#ifdef _WIN32_
#ifdef _WIN32
#include <tchar.h>
#ifdef UNICODE
#define SIZEOF_TCHAR 2
Expand Down
2 changes: 1 addition & 1 deletion src/inputdevice.cpp
Expand Up @@ -2806,7 +2806,7 @@ static int handle_input_event(int nr, int state, int max, int autofire)
if (nr <= 0 || nr == INPUTEVENT_SPC_CUSTOM_EVENT)
return 0;

#ifdef _WIN32_
#ifdef _WIN32
// ignore normal GUI event if forced gui key is in use
if (currprefs.win32_guikey >= 0 && nr == INPUTEVENT_SPC_ENTERGUI)
return 0;
Expand Down
4 changes: 2 additions & 2 deletions src/zfile.cpp
Expand Up @@ -1383,7 +1383,7 @@ static struct zfile *zfile_fopen_x (const TCHAR *name, const TCHAR *mode, int ma
return l;
}

#ifdef _WIN32_
#ifdef _WIN32
static int isinternetfile (const TCHAR *name)
{
if (!_tcsnicmp (name, _T("http://"), 7) || !_tcsnicmp (name, _T("https://"), 8))
Expand Down Expand Up @@ -1490,7 +1490,7 @@ static struct zfile *zfile_fopenx2 (const TCHAR *name, const TCHAR *mode, int ma
struct zfile *f;
TCHAR tmp[MAX_DPATH];

#ifdef _WIN32_
#ifdef _WIN32
if (isinternetfile (name))
return zfile_fopen_internet (name, mode, mask);
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/zfile_archive.cpp
Expand Up @@ -12,7 +12,7 @@

#include "sysdeps.h"

#ifdef _WIN32_
#ifdef _WIN32
#include <windows.h>
#include "win32.h"
#endif
Expand Down Expand Up @@ -676,7 +676,7 @@ static int canrar (void)

if (israr == 0) {
israr = -1;
#ifdef _WIN32_
#ifdef _WIN32
{
HMODULE rarlib;

Expand Down Expand Up @@ -857,7 +857,7 @@ static aapGetFileInfo aaGetFileInfo;
static aapExtract aaExtract;
static aapCloseArchive aaCloseArchive;

#ifdef _WIN32_
#ifdef _WIN32
static HMODULE arcacc_mod;

static void arcacc_free (void)
Expand Down

0 comments on commit fc4c15a

Please sign in to comment.