summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-04 06:41:28 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-04 06:41:28 (GMT)
commitb7de978e450779103dfe62084ce87757c5acae7d (patch)
treeebb4d785a21f628ae37f07ab032d921622b2d678 /win32/win32.c
parent7101611b7608094fc83071a16367c580bc97415e (diff)
try to pass compiling with VC12
* win32/win32.c (FILE_ID_128): it's not defined in SDK with VC10, but seems to be defined in SDK with VC12. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 3d49b54..6e6f46a 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -7895,12 +7895,14 @@ rb_w32_pow(double x, double y)
}
#endif
-#if !defined(_WIN32_WINNT_WIN8) || _WIN32_WINNT < 0x602
-#define FileIdInfo 0x12
-
+#ifndef FILE_INVALID_FILE_ID
typedef struct {
BYTE Identifier[16];
} FILE_ID_128;
+#endif
+
+#if !defined(_WIN32_WINNT_WIN8) || _WIN32_WINNT < 0x602
+#define FileIdInfo 0x12
typedef struct {
unsigned LONG_LONG VolumeSerialNumber;