bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cygwin && WIN32


From: Bruno Haible
Subject: Cygwin && WIN32
Date: Wed, 17 May 2006 15:25:08 +0200
User-agent: KMail/1.5

Hi,

In recent Cygwin some header files (especially <windows.h>) define the
preprocessor macros _WIN32 and WIN32. This wasn't the case a few years ago.

We have used WIN32 as meaning "use the Win32 API". But this is not what
we want to do on Cygwin - except in very few cases. So I'm changing some
code to use
     (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
instead of
     defined _WIN32 || defined __WIN32__
when using native Win32 API.

In other places I used to define WIN32 as an abbreviation of
     defined _WIN32 || defined __WIN32__
Now I'm renaming that to WIN32_NATIVE.

Bruno


2006-05-17  Bruno Haible  <address@hidden>

        Cygwin portability.
        * classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.

*** classpath.c 14 May 2005 06:03:57 -0000      1.3
--- classpath.c 17 May 2006 13:14:14 -0000
***************
*** 1,5 ****
  /* Java CLASSPATH handling.
!    Copyright (C) 2001-2003 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Java CLASSPATH handling.
!    Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 36,42 ****
  #endif
  
  /* Separator in PATH like lists of pathnames.  */
! #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined 
__DJGPP__
    /* Win32, OS/2, DOS */
  # define PATH_SEPARATOR ';'
  #else
--- 36,42 ----
  #endif
  
  /* Separator in PATH like lists of pathnames.  */
! #if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined 
__EMX__ || defined __DJGPP__
    /* Win32, OS/2, DOS */
  # define PATH_SEPARATOR ';'
  #else





reply via email to

[Prev in Thread] Current Thread [Next in Thread]