globus_preload.h

00001 /*
00002  * Copyright 1999-2014 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef GLOBUS_PRELOAD_H
00018 #define GLOBUS_PRELOAD_H 1
00019 
00020 #include "ltdl.h"
00021 
00022 #ifndef lt_preloaded_symbols    
00023 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
00024 /* DATA imports from DLLs on WIN32 con't be const, because runtime
00025    relocations are performed -- see ld's documentation on pseudo-relocs.  */
00026 # define LT_DLSYM_CONST
00027 #elif defined(__osf__)
00028    /* This system does not cope well with relocations in const data.  */
00029 # define LT_DLSYM_CONST
00030 #else
00031 # define LT_DLSYM_CONST const
00032 #endif
00033 #define lt_preloaded_symbols    lt__PROGRAM__LTX_preloaded_symbols
00034 /* Ensure C linkage.  */
00035 extern LT_DLSYM_CONST lt_dlsymlist lt__PROGRAM__LTX_preloaded_symbols[];
00036 
00037 #ifdef LTDL_SET_PRELOADED_SYMBOLS
00038 #undef LTDL_SET_PRELOADED_SYMBOLS
00039 #endif
00040 
00041 #define LTDL_SET_PRELOADED_SYMBOLS() \
00042         lt_dlpreload_default(lt_preloaded_symbols)
00043 #endif
00044 
00045 #endif /* GLOBUS_PRELOAD_H */

Generated on 17 Mar 2017 for globus_common by  doxygen 1.4.7