summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-22 15:53:28 -0600
committerBrian Paul <[email protected]>2008-08-22 15:53:28 -0600
commitf9c04d55d045b3cf3ffef24f805166e3995096e2 (patch)
treebe200543b21428a6a31c7865d39fbf33de8c74fa /src/gallium/auxiliary
parenta22bdd42d77bc858814f37d657fa940a520dbe56 (diff)
gallium: insert __cplusplus/extern wrappings
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_math.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 09c55e437fc..a541d30a5d7 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -44,12 +44,17 @@
#include "util/u_math.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define POW2_TABLE_SIZE 256
#define POW2_TABLE_SCALE ((float) (POW2_TABLE_SIZE-1))
extern float pow2_table[POW2_TABLE_SIZE];
+
extern void
util_init_math(void);
@@ -190,4 +195,8 @@ util_iround(float f)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* U_MATH_H */