cmake/Tutorial/step2/MathFunctions/MathFunctions.h

17 lines
293 B
C++

#pragma once
#if defined(_WIN32)
#if defined(EXPORTING_MYMATH)
#define DECLSPEC __declspec(dllexport)
#else
#define DECLSPEC __declspec(dllimport)
#endif
#else // non windows
#define DECLSPEC
#endif
namespace mathfunctions
{
double DECLSPEC sqrt(double x);
}