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>.
This commit is contained in:
Ed Schouten 2015-02-12 13:58:35 +01:00
parent 16902a6ce1
commit b6ff8bbe91
2 changed files with 5 additions and 2 deletions

View file

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

View file

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