replaced 'WIN32' checks with '_WIN32'

master
Ozkan Sezer 5 years ago
parent 347962bb6d
commit 7c8fa1a370
  1. 2
      src/commands.c
  2. 2
      src/main.c
  3. 4
      src/read_config.c
  4. 2
      src/win32/usleep.c

@ -67,7 +67,7 @@ static int read_key(void)
char key;
int ret = 0;
#if defined HAVE_TERMIOS_H && !defined WIN32
#if defined(HAVE_TERMIOS_H) && !defined(_WIN32)
#ifdef __CYGWIN__
if (stdin_ready_for_reading())
#endif

@ -245,7 +245,7 @@ int main(int argc, char **argv)
int val, lf_flag;
int flags;
int played;
#ifndef WIN32
#ifndef _WIN32
struct timeval tv;
struct timezone tz;

@ -59,7 +59,7 @@ int read_config(struct options *o)
if ((rc = fopen(myrc, "r")) == NULL)
return -1;
#elif defined WIN32
#elif defined _WIN32
const char *home = getenv("USERPROFILE");
if (!home) home = "C:";
@ -291,7 +291,7 @@ void read_modconf(struct options *o, unsigned char *md5)
parse_modconf(o, myrc, md5);
#elif defined __AMIGA__
parse_modconf(o, "PROGDIR:modules.conf", md5);
#elif defined WIN32
#elif defined _WIN32
char myrc[PATH_MAX];
const char *home = getenv("USERPROFILE");
if (!home) home = "C:";

@ -19,7 +19,7 @@ void usleep(long usec)
select(0, NULL, NULL, NULL, &tv);
}
#elif defined WIN32
#elif defined(_WIN32)
/* usleep implementation from FreeSCI */

Loading…
Cancel
Save