From b6ff8bbe910ea4cc0d26650d65d60ecc2184255f Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 12 Feb 2015 13:58:35 +0100 Subject: [PATCH] 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 . --- include/openlibm_math.h | 3 +++ src/common.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/openlibm_math.h b/include/openlibm_math.h index 4d53605..81d5843 100644 --- a/include/openlibm_math.h +++ b/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 */ diff --git a/src/common.c b/src/common.c index 5905c20..373f579 100644 --- a/src/common.c +++ b/src/common.c @@ -1,6 +1,6 @@ -#include "math_private.h" +#include -DLLEXPORT int isopenlibm(void); +#include "math_private.h" DLLEXPORT int isopenlibm(void) { return 1;