Fix for cmake_lib to build under Gcc, Borland, MinGW.
This commit is contained in:
parent
aeb794558b
commit
fa4102004c
|
@ -1,5 +1,7 @@
|
||||||
//#include <stdio.h>
|
#if defined (__BORLANDC__)
|
||||||
#define __DLL_MEAN__
|
#define __DLL_MEAN__
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "mean.h"
|
#include "mean.h"
|
||||||
|
|
||||||
double DLL_SPEC mean(double a, double b) {
|
double DLL_SPEC mean(double a, double b) {
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#if defined(__DLL_MEAN__)
|
#if defined (__BORLANDC__)
|
||||||
#define DLL_SPEC __declspec(dllexport)
|
#if defined(__DLL_MEAN__)
|
||||||
|
#define DLL_SPEC __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define DLL_SPEC __declspec(dllimport)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define DLL_SPEC __declspec(dllimport)
|
#define DLL_SPEC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue