Skip to content

Commit 1c5c6d7

Browse files
author
Damien Doligez
committed
PR#6884: The __CYGWIN32__ #define should be replaced with __CYGWIN__
git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.02@16149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1 parent 3cb0234 commit 1c5c6d7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ Bug fixes:
202202
(Jacques Garrigue, report by Romain Beauxis)
203203
- PR#6879: Wrong optimization of 1 mod n
204204
(Mark Shinwell, report by Jean-Christophe Filliâtre)
205+
- PR#6884: The __CYGWIN32__ #define should be replaced with __CYGWIN__
206+
(Adrien Nader)
205207
- GPR#143: fix getsockopt behaviour for boolean socket options
206208
(Anil Madhavapeddy and Andrew Ray)
207209
- Misplaced assertion in major_gc.c for no-naked-pointers mode

byterun/floats.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ enum { FP_normal, FP_subnormal, FP_zero, FP_infinite, FP_nan };
453453
CAMLprim value caml_classify_float(value vd)
454454
{
455455
/* Cygwin 1.3 has problems with fpclassify (PR#1293), so don't use it */
456-
#if defined(fpclassify) && !defined(__CYGWIN32__) && !defined(__MINGW32__)
456+
/* FIXME Cygwin 1.3 is ancient! Revisit this decision. */
457+
#if defined(fpclassify) && !defined(__CYGWIN__) && !defined(__MINGW32__)
457458
switch (fpclassify(Double_val(vd))) {
458459
case FP_NAN:
459460
return Val_int(FP_nan);

byterun/unix.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <fcntl.h>
2525
#include "caml/config.h"
2626
#ifdef SUPPORT_DYNAMIC_LINKING
27-
#ifdef __CYGWIN32__
27+
#ifdef __CYGWIN__
2828
#include "flexdll.h"
2929
#else
3030
#include <dlfcn.h>
@@ -86,7 +86,7 @@ char * caml_search_in_path(struct ext_table * path, char * name)
8686
return caml_strdup(name);
8787
}
8888

89-
#ifdef __CYGWIN32__
89+
#ifdef __CYGWIN__
9090

9191
/* Cygwin needs special treatment because of the implicit ".exe" at the
9292
end of executable file names */
@@ -137,7 +137,7 @@ char * caml_search_exe_in_path(char * name)
137137

138138
caml_ext_table_init(&path, 8);
139139
tofree = caml_decompose_path(&path, getenv("PATH"));
140-
#ifndef __CYGWIN32__
140+
#ifndef __CYGWIN__
141141
res = caml_search_in_path(&path, name);
142142
#else
143143
res = cygwin_search_exe_in_path(&path, name);
@@ -159,7 +159,7 @@ char * caml_search_dll_in_path(struct ext_table * path, char * name)
159159
}
160160

161161
#ifdef SUPPORT_DYNAMIC_LINKING
162-
#ifdef __CYGWIN32__
162+
#ifdef __CYGWIN__
163163
/* Use flexdll */
164164

165165
void * caml_dlopen(char * libname, int for_execution, int global)

stdlib/header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ char * default_runtime_path = RUNTIME_NAME;
4040
#define SEEK_END 2
4141
#endif
4242

43-
#ifndef __CYGWIN32__
43+
#ifndef __CYGWIN__
4444

4545
/* Normal Unix search path function */
4646

0 commit comments

Comments
 (0)