File tree 2 files changed +8
-13
lines changed
2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 325
325
'defines' : [
326
326
'FD_SETSIZE=1024' ,
327
327
# we need to use node's preferred "win32" rather than gyp's preferred "win"
328
- 'PLATFORM ="win32"' ,
328
+ 'NODE_PLATFORM ="win32"' ,
329
329
'_UNICODE=1' ,
330
330
],
331
331
'libraries' : [ '-lpsapi.lib' ]
337
337
# like Instruments require it for some features
338
338
'libraries' : [ '-framework CoreFoundation' ],
339
339
'defines!' : [
340
- 'PLATFORM ="mac"' ,
340
+ 'NODE_PLATFORM ="mac"' ,
341
341
],
342
342
'defines' : [
343
343
# we need to use node's preferred "darwin" rather than gyp's preferred "mac"
344
- 'PLATFORM ="darwin"' ,
344
+ 'NODE_PLATFORM ="darwin"' ,
345
345
],
346
346
}],
347
347
[ 'OS=="freebsd"' , {
356
356
'-lumem' ,
357
357
],
358
358
'defines!' : [
359
- 'PLATFORM ="solaris"' ,
359
+ 'NODE_PLATFORM ="solaris"' ,
360
360
],
361
361
'defines' : [
362
362
# we need to use node's preferred "sunos"
363
363
# rather than gyp's preferred "solaris"
364
- 'PLATFORM ="sunos"' ,
364
+ 'NODE_PLATFORM ="sunos"' ,
365
365
],
366
366
}],
367
367
[ 'OS=="freebsd" or OS=="linux"' , {
Original file line number Diff line number Diff line change @@ -2625,14 +2625,9 @@ void SetupProcessObject(Environment* env,
2625
2625
READONLY_PROPERTY (process, " arch" , OneByteString (env->isolate (), NODE_ARCH));
2626
2626
2627
2627
// process.platform
2628
- #ifdef _WIN32
2629
- // As determined by gyp, NODE_PLATFORM equals 'win' on windows. However
2630
- // for historic reasons process.platform should be 'win32'.
2631
- Local<String> platform = OneByteString (env->isolate (), " win32" );
2632
- #else
2633
- Local<String> platform = OneByteString (env->isolate (), NODE_PLATFORM);
2634
- #endif
2635
- READONLY_PROPERTY (process, " platform" , platform);
2628
+ READONLY_PROPERTY (process,
2629
+ " platform" ,
2630
+ OneByteString (env->isolate (), NODE_PLATFORM));
2636
2631
2637
2632
// process.argv
2638
2633
Local<Array> arguments = Array::New (env->isolate (), argc);
You can’t perform that action at this time.
0 commit comments