Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
DllImport.h
Go to the documentation of this file.
1/* @(#)root/base:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11/*
12 This include file defines the DllImport macro
13 to build DLLs under Windows OS.
14
15 They are defined as dummy for UNIX's
16*/
17
18#ifndef ROOT_DllImport
19#define ROOT_DllImport
20
21#ifndef __CINT__
22# if defined(WIN32)
23# define R__DllImport __declspec( dllimport )
24# else
25# define R__DllImport
26# endif
27# define R__EXTERN R__DllImport extern
28#else
29# define R__EXTERN extern
30#endif
31
32#ifndef R__DLLEXPORT
33# ifdef _MSC_VER
34# define R__DLLEXPORT __declspec(dllexport)
35# else
36# define R__DLLEXPORT __attribute__ ((visibility ("default")))
37# endif
38#endif
39
40#endif