~ubuntu-branches/ubuntu/trusty/scribus-ng/trusty

« back to all changes in this revision

Viewing changes to scribus/pluginapi.h

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-15 15:57:12 UTC
  • mfrom: (4.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120215155712-biimoc8o875jht80
Tags: 1.4.0.dfsg+r17300-1
* Prepare a dummy transitional package to converge on the 1.4.0 release.
* debian/NEWS: update the news.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
 
to the COPYING file provided with the program. Following this notice may exist
4
 
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
 
for which a new license (GPL+exception) is in place.
6
 
*/
7
 
// Le bloc ifdef suivant est la fa�on standard de cr�er des macros qui facilitent l'exportation 
8
 
// � partir d'une DLL. Tous les fichiers contenus dans cette DLL sont compil�s avec le symbole SVGEXPORT121_EXPORTS
9
 
// d�fini sur la ligne de commande. Ce symbole ne doit pas �tre d�fini dans les projets
10
 
// qui utilisent cette DLL. De cette mani�re, les autres projets dont les fichiers sources comprennent ce fichier consid�rent les fonctions 
11
 
// SVGEXPORT121_API comme �tant import�es � partir d'une DLL, tandis que cette DLL consid�re les symboles
12
 
// d�finis avec cette macro comme �tant export�.
13
 
 
14
 
#ifndef PLUGIN_API_H
15
 
#define PLUGIN_API_H
16
 
 
17
 
#ifdef _WIN32
18
 
    #ifdef COMPILE_SCRIBUS_MAIN_APP
19
 
        #define PLUGIN_API __declspec(dllimport)
20
 
    #else
21
 
        #ifdef COMPILE_PLUGIN_AS_DLL
22
 
            #define PLUGIN_API __declspec(dllexport)
23
 
        #else
24
 
            #define PLUGIN_API
25
 
        #endif
26
 
    #endif
27
 
#else
28
 
    #ifdef HAVE_GCC_SYMBOL_VISIBILITY
29
 
        #define PLUGIN_API __attribute__ ((visibility("default")))
30
 
        #define PLUGIN_LOCAL __attribute__ ((visibility("hidden")))
31
 
    #else
32
 
        #define PLUGIN_API
33
 
        #define PLUGIN_LOCAL
34
 
    #endif
35
 
#endif
36
 
 
37
 
#endif