Fix includes for M_PI on Win

Fix missing ImportExport
This commit is contained in:
wandererfan
2018-07-17 07:59:30 -04:00
committed by Yorik van Havre
parent 20668b4160
commit 9f4a5ae652
3 changed files with 8 additions and 2 deletions

View File

@@ -4,9 +4,13 @@
// modified 2018 wandererfan
#include "PreCompiled.h"
#include <iomanip>
//required by windows for M_PI definition
#define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <src/Build/Version.h>
#include <Base/Console.h>
#include <Base/FileInfo.h>

View File

@@ -121,7 +121,7 @@ struct LWPolyDataOut
};
//********************
class CDxfWrite{
class ImportExport CDxfWrite{
private:
std::ofstream* m_ofs;
bool m_fail;

View File

@@ -33,11 +33,13 @@
# define PartExport __declspec(dllimport)
# define TechDrawGuiExport __declspec(dllexport)
# define SpreadsheetExport __declspec(dllimport)
# define ImportExport __declspec(dllimport)
#else // for Linux
# define TechDrawExport
# define PartExport
# define TechDrawGuiExport
# define SpreadsheetExport
# define ImportExport
#endif
#ifdef _MSC_VER