mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Use built-in _WIN32 macro instead of WIN32
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user