Skip to content

Commit b6ff8bb

Browse files
committed
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>.
1 parent 16902a6 commit b6ff8bb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

include/openlibm_math.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ extern int signgam;
194194
#if defined(__cplusplus)
195195
extern "C" {
196196
#endif
197+
/* Symbol present when OpenLibm is used. */
198+
int isopenlibm(void);
199+
197200
/*
198201
* ANSI/POSIX
199202
*/

src/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "math_private.h"
1+
#include <openlibm_math.h>
22

3-
DLLEXPORT int isopenlibm(void);
3+
#include "math_private.h"
44

55
DLLEXPORT int isopenlibm(void) {
66
return 1;

0 commit comments

Comments
 (0)