Skip to content

Commit

Permalink
Merge pull request #41 from sarangsapre/master
Browse files Browse the repository at this point in the history
Build with NodeWebkit 0.11.x
  • Loading branch information
TooTallNate committed Jan 30, 2015
2 parents 001890f + b241bc7 commit a6aaeae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions binding.gyp
Expand Up @@ -14,6 +14,13 @@
'deps/lame/libmp3lame.gyp:mp3lame',
'deps/mpg123/mpg123.gyp:mpg123'
],
'conditions':[
['OS=="win"', {
'defines':[
'NOMINMAX'
]
}]
]
}
]
}
4 changes: 2 additions & 2 deletions src/node_lame.cc
Expand Up @@ -390,7 +390,7 @@ void InitLame(Handle<Object> target) {

/* sizeof's */
#define SIZEOF(value) \
target->Set(NanNew<String>("sizeof_" #value), NanNew<Integer>(sizeof(value)), \
target->ForceSet(NanNew<String>("sizeof_" #value), NanNew<Integer>(sizeof(value)), \
static_cast<PropertyAttribute>(ReadOnly|DontDelete))
SIZEOF(short);
SIZEOF(int);
Expand All @@ -399,7 +399,7 @@ void InitLame(Handle<Object> target) {


#define CONST_INT(value) \
target->Set(NanNew<String>(#value), NanNew<Integer>(value), \
target->ForceSet(NanNew<String>(#value), NanNew<Integer>(value), \
static_cast<PropertyAttribute>(ReadOnly|DontDelete));

// vbr_mode_e
Expand Down
2 changes: 1 addition & 1 deletion src/node_mpg123.cc
Expand Up @@ -410,7 +410,7 @@ void InitMPG123(Handle<Object> target) {
NanScope();

#define CONST_INT(value) \
target->Set(NanNew<String>(#value), NanNew<Integer>(value), \
target->ForceSet(NanNew<String>(#value), NanNew<Integer>(value), \
static_cast<PropertyAttribute>(ReadOnly|DontDelete));

// mpg123_errors
Expand Down

0 comments on commit a6aaeae

Please sign in to comment.