The "cantera/kernel" directory is now part of the include path only when building the Cantera kernel. All other modules include files in this directory as "kernel/header.h". This fixes a problem distinguishing between kernel/Kinetics.h and kinetics.h on Windows.
56 lines
973 B
C++
Executable file
56 lines
973 B
C++
Executable file
/**
|
|
* @file clib_defs.h
|
|
*/
|
|
/*
|
|
* $Id$
|
|
*/
|
|
|
|
|
|
#ifndef CTC_DEFS_H
|
|
#define CTC_DEFS_H
|
|
|
|
#include "kernel/ct_defs.h"
|
|
|
|
#ifdef WIN32
|
|
// Either build as a DLL under Windows or not.
|
|
// the decision relies upon whether the NO_DLL_BUILD define is
|
|
// set or not.
|
|
#ifdef NO_DLL_BUILD
|
|
#define DLL_EXPORT
|
|
#define DLL_IMPORT
|
|
#else
|
|
#define DLL_IMPORT __declspec(dllimport)
|
|
#define DLL_EXPORT __declspec(dllexport)
|
|
#endif
|
|
|
|
#pragma warning(disable:4786)
|
|
#pragma warning(disable:4267)
|
|
#pragma warning(disable:4503)
|
|
#else
|
|
// On other platforms, we turn off the DLL macros.
|
|
#define DLL_EXPORT
|
|
#define DLL_IMPORT
|
|
#endif
|
|
|
|
#ifdef CANTERA_USE_INTERNAL
|
|
#define DLL_CPREFIX DLL_EXPORT
|
|
#define EEXXTT extern
|
|
#else
|
|
#define DLL_CPREFIX DLL_IMPORT
|
|
#define EEXXTT
|
|
#endif
|
|
|
|
// Values returned for error conditions
|
|
#ifndef ERR
|
|
#define ERR -999
|
|
#endif
|
|
#ifndef DERR
|
|
#define DERR -999.999
|
|
#endif
|
|
|
|
namespace Cantera {}
|
|
//using namespace Cantera;
|
|
namespace std {}
|
|
//using namespace std;
|
|
|
|
#endif
|