diff options
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r-- | include/ruby/win32.h | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 9ad2f86641..4d16b2b68d 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -20,16 +20,16 @@ extern "C" { * */ -// -// Definitions for NT port of Perl -// +/* + * Definitions for NT port of Perl + */ -// -// Ok now we can include the normal include files. -// +/* + * Ok now we can include the normal include files. + */ -// #include <stdarg.h> conflict with varargs.h? +/* #include <stdarg.h> conflict with varargs.h? */ #if !defined(WSAAPI) #if defined(__cplusplus) && defined(_MSC_VER) extern "C++" { /* template without extern "C++" */ @@ -46,10 +46,10 @@ extern "C++" { /* template without extern "C++" */ #define NT 1 /* deprecated */ -// -// We're not using Microsoft's "extensions" to C for -// Structured Exception Handling (SEH) so we can nuke these -// +/* + * We're not using Microsoft's "extensions" to C for + * Structured Exception Handling (SEH) so we can nuke these + */ #undef try #undef except #undef finally @@ -382,9 +382,9 @@ scalb(double a, long b) #define S_IXOTH 0001 #endif -// -// define this so we can do inplace editing -// +/* + * define this so we can do inplace editing + */ #define SUFFIX @@ -425,9 +425,9 @@ extern int rb_w32_fseeko(FILE *stream, off_t offset, int whence); #define ftello rb_w32_ftello #endif -// -// stubs -// +/* + * stubs + */ extern int ioctl (int, int, ...); extern rb_uid_t getuid (void); extern rb_uid_t geteuid (void); @@ -573,11 +573,15 @@ extern char *rb_w32_strerror(int); #endif #define F_DUPFD 0 -//#define F_GETFD 1 -//#define F_SETFD 2 -//#define F_GETFL 3 +#if 0 +#define F_GETFD 1 +#define F_SETFD 2 +#define F_GETFL 3 +#endif #define F_SETFL 4 -//#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */ +#if 0 +#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */ +#endif #define O_NONBLOCK 1 #undef FD_SET |