• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ut_export.h

Go to the documentation of this file.
00001 /* -*- mode: C; tab-width: 4; c-basic-offset: 4; -*- */
00002 /* AbiSource Program Utilities
00003  * Copyright (C) 1998 AbiSource, Inc.
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef _UT_EXPORT_H_
00022 #define _UT_EXPORT_H_
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include "config.h"
00026 #endif
00027 
00028 /* This is about exporting symbols...*/
00029 
00030 /* This MUST compile with plain C */
00031 
00032 #if defined(_WIN32) /* && !defined(__MINGW32__) */
00033   #define ABI_PLUGIN_EXPORT __declspec(dllexport)
00034   #ifdef ABI_DLL
00035      /* we are building an AbiWord plugin and want to use something declared in a library */
00036      #define ABI_EXPORT __declspec(dllimport)
00037   #else
00038      /* we are building AbiWord and wish for its parts to be used by plugins */
00039      #define ABI_EXPORT __declspec(dllexport)
00040   #endif
00041 #elif defined (DISABLE_EXPORTS)
00042   /* ignore DISABLE_EXPORTS until we have assigned all symbols proper
00043    * visibility */
00044   #define ABI_PLUGIN_EXPORT
00045   #define ABI_EXPORT
00046 #else
00047   #define ABI_PLUGIN_EXPORT
00048   #define ABI_EXPORT
00049 #endif
00050 
00051 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1