Skip to content

Commit

Permalink
Compiles on windows 10 now
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotvig committed Aug 20, 2016
1 parent 0168437 commit 93f1baa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alac/ALACBitUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef enum
ID_PCE = 5,
ID_FIL = 6,
ID_END = 7
} ELEMENT_TYPE;
} AELEMENT_TYPE;

// types
typedef struct BitBuffer
Expand Down
4 changes: 4 additions & 0 deletions alac/ag_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
#define ALWAYS_INLINE
#endif

#ifdef _MSC_VER
#define inline __inline
#endif

/* And on the subject of the CodeWarrior x86 compiler and inlining, I reworked a lot of this
to help the compiler out. In many cases this required manual inlining or a macro. Sorry
if it is ugly but the performance gains are well worth it.
Expand Down
4 changes: 4 additions & 0 deletions alac/dp_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#define ALWAYS_INLINE
#endif

#ifdef _MSC_VER
#define inline __inline
#endif

#if TARGET_CPU_PPC && (__MWERKS__ >= 0x3200)
// align loops to a 16 byte boundary to make the G5 happy
#pragma function_align 16
Expand Down
4 changes: 4 additions & 0 deletions alac/dp_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#define ALWAYS_INLINE
#endif

#ifdef _MSC_VER
#define inline __inline
#endif

#if TARGET_CPU_PPC && (__MWERKS__ >= 0x3200)
// align loops to a 16 byte boundary to make the G5 happy
#pragma function_align 16
Expand Down
2 changes: 1 addition & 1 deletion src/codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C" {
using namespace v8;
using namespace node;

static int kBlockSize = 16;
const int kBlockSize = 16;
static int kFramesPerPacket = 352;

// These values should be changed at each iteration
Expand Down

0 comments on commit 93f1baa

Please sign in to comment.