Files
create/src/Mod/Image/ImageGlobal.h
wmayer 40d2955c66 Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
The FCGlobal.h can be included in a Global.h header file of an extension module.

The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00

33 lines
924 B
C

/***************************************************************************
* Copyright (c) Imetric 4D Imaging Sarl *
* *
* Author: Werner Mayer *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef IMAGE_GLOBAL_H
#define IMAGE_GLOBAL_H
// Image
#ifndef ImageExport
#ifdef Image_EXPORTS
# define ImageExport FREECAD_DECL_EXPORT
#else
# define ImageExport FREECAD_DECL_IMPORT
#endif
#endif
// ImageGui
#ifndef ImageGuiExport
#ifdef ImageGui_EXPORTS
# define ImageGuiExport FREECAD_DECL_EXPORT
#else
# define ImageGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //IMAGE_GLOBAL_H