Fix GitHub issue #324 - replace __CYGWIN32__ with __CYGWIN__.

__CYGWIN32__ is not defined when building with the 64-bit Cygwin
toolchain. According to the Cygwin FAQ, __CYGWIN__ has been defined
since 1998, so this should still work for users on 32-bit systems.
This commit is contained in:
Martin Whitaker 2020-05-10 14:29:45 +01:00
parent 7b4e5ffc84
commit 1aba4acebe
4 changed files with 4 additions and 4 deletions

View File

@ -2321,7 +2321,7 @@ extern const char* ivl_type_prop_name(ivl_type_t net, int idx);
extern ivl_type_t ivl_type_prop_type(ivl_type_t net, int idx); extern ivl_type_t ivl_type_prop_type(ivl_type_t net, int idx);
#if defined(__MINGW32__) || defined (__CYGWIN32__) #if defined(__MINGW32__) || defined (__CYGWIN__)
# define DLLEXPORT __declspec(dllexport) # define DLLEXPORT __declspec(dllexport)
#else #else
# define DLLEXPORT # define DLLEXPORT

View File

@ -68,7 +68,7 @@ extern "C" int optind;
extern "C" const char*optarg; extern "C" const char*optarg;
#endif #endif
#if defined(__CYGWIN32__) && !defined(HAVE_GETOPT_H) #if defined(__CYGWIN__) && !defined(HAVE_GETOPT_H)
extern "C" int getopt(int argc, char*argv[], const char*fmt); extern "C" int getopt(int argc, char*argv[], const char*fmt);
extern "C" int optind; extern "C" int optind;
extern "C" const char*optarg; extern "C" const char*optarg;

View File

@ -21,7 +21,7 @@
# include "vpi_user.h" # include "vpi_user.h"
#if defined(__MINGW32__) || defined (__CYGWIN32__) #if defined(__MINGW32__) || defined (__CYGWIN__)
# define DLLEXPORT __declspec(dllexport) # define DLLEXPORT __declspec(dllexport)
#else #else
# define DLLEXPORT # define DLLEXPORT

View File

@ -20,7 +20,7 @@
*/ */
#if defined(__MINGW32__) || defined (__CYGWIN32__) #if defined(__MINGW32__) || defined (__CYGWIN__)
# define DLLEXPORT __declspec(dllexport) # define DLLEXPORT __declspec(dllexport)
#else #else
# define DLLEXPORT # define DLLEXPORT