Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

compilopt.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Carlos Pascual-Izarra & Miguel A. Reis          *
00003  *   carlos.pascual@itn.pt                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 /**\file lib/compilopt.h
00022 In this file, some compilation options can be defined for:
00023 a) tricks for solving the compilation and linking under the different plattforms or with different compilers.
00024 
00025 This is not very elegant and for sure is reinventing the wheel but works for :
00026      Compiling with gcc under GNU/linux
00027      Compiling with MingW (gcc under Win)
00028      Linking with the DEC Visual Fortran
00029      
00030 b) Select the verbosity level of the routines. 
00031 */
00032 
00033 
00034 /*Uncomment the following line if the strcasecmp() function 
00035 is not available (e.g. when linking with the DEC fortran linker under Win )
00036 WARNING: This will change the behaviour from Non-case sensitiviness
00037 to case-sensitiviness in various comparisons.
00038 */
00039 // #define STRNCASECMPNOTAVAIL 
00040 
00041 #ifdef STRNCASECMPNOTAVAIL
00042   #define strcasecmp strcmp
00043   #define strncasecmp strncmp
00044 #endif
00045 
00046 /*Uncomment the following line if you get an "unresolved external" when linking to the 
00047 snprintf function (e.g. it hapens in WIN32 systems)*/
00048 //#define SNPRINTFNOTAVAIL
00049 
00050 #ifdef SNPRINTFNOTAVAIL
00051   #define snprintf        _snprintf
00052 #endif
00053 
00054 /*Uncomment following line if having trouble with sqrtf, pow, expf logf
00055 (e.g., it happens when linking with DEC Fortran compiler)*/
00056 //#define MATHFNOTAVAIL
00057 
00058 #ifdef MATHFNOTAVAIL
00059        #define sqrtf sqrt
00060        #define powf pow
00061        #define expf exp
00062        #define logf log
00063 #endif
00064 
00065 /* VERBOSITY LEVEL of CPIXE and LibCPIXE. For efficiency, compile it with CPIXEVERBOSITY=0: 
00066      0 = Silent  (Use for maximum efficiency when you are interested in using LibCPIXE as a library with another program)
00067      1 = Standard  (Use for debugging LibCPIXE or for compiling CPIXE )
00068      2 = Extra verbose (Use only in developement situations)
00069 */
00070 #define CPIXEVERBOSITY 1
00071 

Generated on Fri Jul 15 20:43:49 2005 for LibCPIXE API by  doxygen 1.3.9.1