Browse Source

Clean up a change that I sneaked in accidentically.

I often build the code with -Wmissing-prototypes to ensure that we don't
accidentically pollute the symbol namespace. If we want to provide a
symbol such as isopenlibm(), make sure we also declare it in
<openlibm_math.h>.
Ed Schouten 10 years ago
parent
commit
b6ff8bbe91
2 changed files with 5 additions and 2 deletions
  1. 3 0
      include/openlibm_math.h
  2. 2 2
      src/common.c

+ 3 - 0
include/openlibm_math.h

@@ -194,6 +194,9 @@ extern int signgam;
 #if defined(__cplusplus)
 extern "C" {
 #endif
+/* Symbol present when OpenLibm is used. */
+int isopenlibm(void);
+
 /*
  * ANSI/POSIX
  */

+ 2 - 2
src/common.c

@@ -1,6 +1,6 @@
-#include "math_private.h"
+#include <openlibm_math.h>
 
-DLLEXPORT int isopenlibm(void);
+#include "math_private.h"
 
 DLLEXPORT int isopenlibm(void) {
     return 1;