undone Warnflag declaration due to cl.exe incompatibilities , now Warnflag is retuned with errorcode

This commit is contained in:
mauriziocingi
2015-11-20 13:35:40 +01:00
parent 3151805675
commit ea08fb9da1
4 changed files with 62 additions and 30 deletions

View File

@@ -36,7 +36,6 @@
// --- define DLLEXPORT
#ifndef DLLEXPORT
#ifdef WINDOWS
#define DLLDATA __declspec(dllexport)
#ifdef __cplusplus
#define DLLEXPORT extern "C" __declspec(dllexport)
#else
@@ -54,9 +53,6 @@
#define DLLEXPORT
#endif
#endif
#ifndef DLLDATA
#define DLLDATA
#endif
// --- Define the EPANET toolkit constants
@@ -287,7 +283,6 @@ extern "C" {
int DLLEXPORT ENsetcurvevalue(int index, int pnt, EN_API_FLOAT_TYPE x, EN_API_FLOAT_TYPE y);
int DLLEXPORT ENsetcurve(int index, EN_API_FLOAT_TYPE *x, EN_API_FLOAT_TYPE *y, int len);
int DLLEXPORT ENaddcurve(char *id);
char DLLDATA Warnflag;
#if defined(__cplusplus)
}