~ubuntu-branches/ubuntu/oneiric/mmpong/oneiric

« back to all changes in this revision

Viewing changes to lib/dllhelper.h

  • Committer: Bazaar Package Importer
  • Author(s): André Gaul
  • Date: 2009-01-09 16:39:01 UTC
  • Revision ID: james.westby@ubuntu.com-20090109163901-3k701q6yxwailed7
Tags: upstream-0.9
Import upstream version 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
  Copyright (C) 2008 André Gaul
 
3
 
 
4
        This file is part of mmpong.
 
5
 
 
6
        mmpong is free software: you can redistribute it and/or modify
 
7
        it under the terms of the GNU General Public License as published by
 
8
        the Free Software Foundation, either version 3 of the License, or
 
9
        (at your option) any later version.
 
10
 
 
11
        mmpong is distributed in the hope that it will be useful,
 
12
        but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
        GNU General Public License for more details.
 
15
 
 
16
        You should have received a copy of the GNU General Public License
 
17
        along with mmpong.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
#ifdef WIN32
 
21
# ifdef MMPONG_BUILD_DLL
 
22
   //DLL export
 
23
#  define EXPORT __declspec(dllexport)
 
24
# else
 
25
   //EXE import
 
26
#  define EXPORT __declspec(dllimport)
 
27
# endif
 
28
#else
 
29
  //nothing special in non-WIN32-case
 
30
# define EXPORT
 
31
#endif
 
32