Use built-in _WIN32 macro instead of WIN32

This commit is contained in:
Mitchell Livingston
2014-07-04 00:00:07 +00:00
parent d0695b7006
commit 0e01879974
30 changed files with 81 additions and 84 deletions

View File

@@ -189,7 +189,7 @@ gotsig (int sig)
}
}
#if defined (WIN32)
#if defined (_WIN32)
#define USE_NO_DAEMON
#elif !defined (HAVE_DAEMON) || defined (__UCLIBC__)
#define USE_TR_DAEMON
@@ -399,7 +399,7 @@ main (int argc, char ** argv)
signal (SIGINT, gotsig);
signal (SIGTERM, gotsig);
#ifndef WIN32
#ifndef _WIN32
signal (SIGHUP, gotsig);
#endif

View File

@@ -15,7 +15,7 @@
#include <stdlib.h>
#include <string.h> /* strcmp */
#ifdef WIN32
#ifdef _WIN32
#include <direct.h> /* getcwd */
#else
#include <unistd.h> /* getcwd */
@@ -500,7 +500,7 @@ tr_getcwd (void)
char * result;
char buf[2048];
#ifdef WIN32
#ifdef _WIN32
result = _getcwd (buf, sizeof (buf));
#else
result = getcwd (buf, sizeof (buf));