added src/phreeqcpp/common/PHRQ_exports.h

This commit is contained in:
Charlton, Scott R 2020-09-15 20:29:41 -06:00
parent b030a0b9db
commit abb80b511f
9 changed files with 22 additions and 30 deletions

View File

@ -15,11 +15,7 @@
#include <vector>
#include "CVar.hxx"
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
class IPQ_DLL_EXPORT CSelectedOutput
{

View File

@ -14,11 +14,7 @@
#include "Var.h" /* VRESULT */
#include "PHRQ_io.h"
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
class Phreeqc;
class IErrorReporter;

View File

@ -48,6 +48,7 @@ libiphreeqc_la_SOURCES=\
phreeqcpp/common/Parser.h\
phreeqcpp/common/PHRQ_base.cxx\
phreeqcpp/common/PHRQ_base.h\
phreeqcpp/common/PHRQ_exports.h\
phreeqcpp/common/PHRQ_io.cpp\
phreeqcpp/common/PHRQ_io.h\
phreeqcpp/common/phrqtype.h\

6
Var.h
View File

@ -6,11 +6,7 @@
#ifndef __VAR_H_INC
#define __VAR_H_INC
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
#if defined(R_SO) || defined(NO_NAMELESS_UNION)
#define VAR_UNION_NAME u

View File

@ -24,6 +24,7 @@ phreeqc_SOURCES=\
common/Parser.h\
common/PHRQ_base.cxx\
common/PHRQ_base.h\
common/PHRQ_exports.h\
common/PHRQ_io.cpp\
common/PHRQ_io.h\
common/phrqtype.h\

View File

@ -1,11 +1,7 @@
#if !defined(NAMEDOUBLE_H_INCLUDED)
#define NAMEDOUBLE_H_INCLUDED
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
#include <cassert> // assert
#include <map> // std::map

View File

@ -3,11 +3,7 @@
#include <sstream>
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
class PHRQ_io;
class IPQ_DLL_EXPORT PHRQ_base

View File

@ -0,0 +1,14 @@
#ifndef INC_PHRQ_EXPORTS_H
#define INC_PHRQ_EXPORTS_H
#if defined(_WINDLL)
# ifdef IPhreeqc_EXPORTS
# define IPQ_DLL_EXPORT __declspec(dllexport)
# else
# define IPQ_DLL_EXPORT __declspec(dllimport)
# endif
#else
# define IPQ_DLL_EXPORT
#endif
#endif // INC_PHRQ_EXPORTS_H

View File

@ -1,11 +1,7 @@
#ifndef _PHRQIO_H
#define _PHRQIO_H
#if defined(_WINDLL)
#define IPQ_DLL_EXPORT __declspec(dllexport)
#else
#define IPQ_DLL_EXPORT
#endif
#include "PHRQ_exports.h"
#include <iostream>
#include <exception>