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 @@ -2626,14 +2626,9 @@ void SetupProcessObject(Environment* env,
2626
2626
READONLY_PROPERTY (process, " arch" , OneByteString (env->isolate (), NODE_ARCH));
2627
2627
2628
2628
// process.platform
2629
- #ifdef _WIN32
2630
- // As determined by gyp, NODE_PLATFORM equals 'win' on windows. However
2631
- // for historic reasons process.platform should be 'win32'.
2632
- Local<String> platform = OneByteString (env->isolate (), " win32" );
2633
- #else
2634
- Local<String> platform = OneByteString (env->isolate (), NODE_PLATFORM);
2635
- #endif
2636
- READONLY_PROPERTY (process, " platform" , platform);
2629
+ READONLY_PROPERTY (process,
2630
+ " platform" ,
2631
+ OneByteString (env->isolate (), NODE_PLATFORM));
2637
2632
2638
2633
// process.argv
2639
2634
Local<Array> arguments = Array::New (env->isolate (), argc);
You can’t perform that action at this time.
0 commit comments