Skip to content

Commit

Permalink
Libmikmod OSX build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Kochen committed May 12, 2012
1 parent 878684a commit 3e2d5ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -58,3 +58,4 @@ System/*.dll
System/*.exp
System/*.ilk
System/*.map
System/*.dylib
21 changes: 14 additions & 7 deletions Deps/libmikmod-gyp/include/config.h
@@ -1,8 +1,10 @@
#define HAVE_FCNTL_H 1
#define HAVE_MALLOC_H 1

#ifndef WIN32
#if !defined(__APPLE__)
#define HAVE_MALLOC_H 1
#endif

#if !defined(WIN32)
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_SETENV 1
Expand All @@ -21,10 +23,15 @@
#define HAVE_SYS_WAIT_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1

#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
# define WORDS_BIGENDIAN 1
#endif

#endif /* WIN32 */
#if defined(__APPLE__)
# ifdef __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#elif !defined(WIN32)
# include <endian.h>
# if __BYTE_ORDER == __LITTLE_ENDIAN
# define WORDS_BIGENDIAN 1
# endif
#endif
2 changes: 1 addition & 1 deletion Deps/libmikmod-gyp/libmikmod.gyp
Expand Up @@ -30,7 +30,7 @@
["_type == 'shared_library' and OS == 'win'", {
"defines": [ "DLL_EXPORTS" ]
}],
["_type == 'shared_library' and OS != 'win'", {
["_type == 'shared_library' and OS == 'linux'", {
"cflags": [ "-fPIC" ]
}]
],
Expand Down

0 comments on commit 3e2d5ae

Please sign in to comment.