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#if defined(WIN32)
22# define R__DllImport __declspec( dllimport )
23#else
24# define R__DllImport
25#endif
26# define R__EXTERN R__DllImport extern
27
28#ifndef R__DLLEXPORT
29# ifdef _MSC_VER
30# define R__DLLEXPORT __declspec(dllexport)
31# else
32# define R__DLLEXPORT __attribute__ ((visibility ("default")))
33# endif
34#endif
35
36#endif