forked from thomasmarsh/ODE
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'no-generated-headers' into lovr
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// lovr: edit this to change precision, or use other build system flags | ||
#define dSINGLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// lovr: unused | ||
#define dODE_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define CCD_SINGLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// lovr: version of config.h that doesn't require autotools/cmake function/include checks | ||
#ifndef ODE_CONFIG_H | ||
#define ODE_CONFIG_H | ||
|
||
#ifndef __has_include | ||
#error "__has_include is not supported by this compiler; consider using autotools/cmake instead" | ||
#endif | ||
|
||
#if __has_include(<alloca.h>) | ||
#include <alloca.h> | ||
#endif | ||
|
||
#if __has_include(<malloc.h>) | ||
#include <malloc.h> | ||
#endif | ||
|
||
#if __has_include(<stdint.h>) | ||
#include <stdint.h> | ||
#endif | ||
|
||
#if __has_include(<inttypes.h>) | ||
#include <inttypes.h> | ||
#endif | ||
|
||
#ifdef dSINGLE | ||
#define dEpsilon FLT_EPSILON | ||
#else | ||
#define dEpsilon DBL_EPSILON | ||
#endif | ||
|
||
// Sorry | ||
#if _WIN32 | ||
#define HAVE__ISNAN | ||
#define HAVE__ISNANF | ||
#else | ||
#define HAVE_CLOCK_GETTIME | ||
#define HAVE_GGETTIMEOFDAY | ||
#define HAVE_ISNAN | ||
#define HAVE_ISNANF | ||
#endif | ||
|
||
#define dTRIMESH_ENABLED 1 | ||
#define dTRIMESH_OPCODE 1 | ||
#define dOU_ENABLED 1 | ||
#define dTLS_ENABLED 1 | ||
|
||
#include "typedefs.h" | ||
|
||
#endif |