From 7766a874cb757504aefcb90cd1949288bccecd9f Mon Sep 17 00:00:00 2001 From: Tom Taxon Date: Tue, 6 Dec 2011 19:00:39 +0000 Subject: [PATCH] Fixed so that the extern "C" was not just for linux git-svn-id: https://epanet.svn.sourceforge.net/svnroot/epanet/BASE/trunk@425 c320cabd-cc23-0410-96d8-e60fbf53ed7f --- src/toolkit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toolkit.h b/src/toolkit.h index 8507c77..304076e 100755 --- a/src/toolkit.h +++ b/src/toolkit.h @@ -162,7 +162,7 @@ AUTHOR: L. Rossman // --- Declare the EPANET toolkit functions -#if defined(__LINUX__) && defined(__cplusplus) +#if defined(__cplusplus) extern "C" { #endif int DLLEXPORT ENepanet(char *, char *, char *, void (*) (char *)); @@ -235,6 +235,6 @@ extern "C" { int DLLEXPORT ENsetstatusreport(int); int DLLEXPORT ENsetqualtype(int, char *, char *, char *); -#if defined(__LINUX__) && defined(__cplusplus) +#if defined(__cplusplus) } #endif