Skip to content

Commit

Permalink
Merge branch 'no-generated-headers' into lovr
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Mar 25, 2022
2 parents b88f9ad + 31d0fae commit dd3e3fc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/ode/precision.h
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
2 changes: 2 additions & 0 deletions include/ode/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// lovr: unused
#define dODE_VERSION
1 change: 1 addition & 0 deletions libccd/src/ccd/precision.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define CCD_SINGLE
49 changes: 49 additions & 0 deletions ode/src/config.h
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

0 comments on commit dd3e3fc

Please sign in to comment.