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__
|
||||
#endif
|
||||
|
||||
#include "mean.h"
|
||||
|
||||
double DLL_SPEC mean(double a, double b) {
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#if defined(__DLL_MEAN__)
|
||||
#define DLL_SPEC __declspec(dllexport)
|
||||
#if defined (__BORLANDC__)
|
||||
#if defined(__DLL_MEAN__)
|
||||
#define DLL_SPEC __declspec(dllexport)
|
||||
#else
|
||||
#define DLL_SPEC __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define DLL_SPEC __declspec(dllimport)
|
||||
#define DLL_SPEC
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue