diff --git a/node.gyp b/node.gyp index 3123537545..343a5e93b6 100644 --- a/node.gyp +++ b/node.gyp @@ -178,6 +178,9 @@ }], [ 'OS=="mac"', { 'libraries': [ '-framework Carbon' ], + 'defines!': [ + 'PLATFORM="mac"', + ], 'defines': [ # we need to use node's preferred "darwin" rather than gyp's preferred "mac" 'PLATFORM="darwin"',