Version: 9.16.0
DF_definitions.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef DF_DEF_HXX
21#define DF_DEF_HXX
22
23#ifdef WIN32
24# if defined DF_EXPORTS
25# define DF_EXPORT __declspec( dllexport )
26# else
27# define DF_EXPORT __declspec( dllimport )
28# endif
29#else
30# define DF_EXPORT
31#endif
32
33#include <iostream>
34#include <stdio.h>
35
36# if defined(WIN32) && !defined(HAVE_NO_DLL)
37
38# ifndef Standard_EXPORT
39# define Standard_EXPORT __declspec( dllexport )
40// For global variables :
41# define Standard_EXPORTEXTERN __declspec( dllexport ) extern
42# define Standard_EXPORTEXTERNC extern "C" __declspec( dllexport )
43# endif /* Standard_EXPORT */
44
45# ifndef Standard_IMPORT
46# define Standard_IMPORT __declspec( dllimport ) extern
47# define Standard_IMPORTC extern "C" __declspec( dllimport )
48# endif /* Standard_IMPORT */
49
50# else /* WIN32 */
51
52# ifndef Standard_EXPORT
53# define Standard_EXPORT
54// For global variables :
55# define Standard_EXPORTEXTERN extern
56# define Standard_EXPORTEXTERNC extern "C"
57# endif /* Standard_EXPORT */
58
59# ifndef Standard_IMPORT
60# define Standard_IMPORT extern
61# define Standard_IMPORTC extern "C"
62# endif /* Standard_IMPORT */
63
64# endif /* WIN32 */
65
66# ifndef __Standard_API
67//# ifdef WIN32
68# if !defined(WIN32)
69# define __Standard_API Standard_EXPORT
70# define __Standard_APIEXTERN Standard_EXPORTEXTERN
71# else
72# define __Standard_API Standard_IMPORT
73# define __Standard_APIEXTERN Standard_IMPORT
74# endif // __Standard_DLL
75//# else
76//# define __Standard_API
77//# endif // WIN32
78# endif // __Standard_API
79
80#include <iostream>
82{
83public :
84 DFexception(const char *message) {
85 std::cerr << message << std::endl;
86 }
87};
88
89
90#endif
#define Standard_EXPORT
Definition: DF_definitions.hxx:53
Definition: DF_definitions.hxx:82
DFexception(const char *message)
Definition: DF_definitions.hxx:84