00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooFit.h,v 1.4 2007/05/11 09:11:30 verkerke Exp $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 #ifndef ROO_FIT 00017 #define ROO_FIT 00018 00019 #include "RConfig.h" 00020 00021 // Global include file to fix occasional compiler issues 00022 // An error in the construction of the system and C++ header files on 00023 // Solaris 8 / Workshop 6 Updates 1&2 leads to a conflict between the use 00024 // of ::clock_t and clock_t when <string> is compiled under 00025 // -D_XOPEN_SOURCE=500. The following code ensures that ::clock_t is 00026 // always defined and thus allows <string> to compile. 00027 // This is just a workaround and should be monitored as compiler and 00028 // operating system versions evolve. 00029 #if defined(__SUNPRO_CC) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 == 500 ) 00030 #ifndef _CLOCK_T 00031 #define _CLOCK_T 00032 typedef long clock_t; /* relative time in a 00033 specified resolution */ 00034 #endif /* ifndef _CLOCK_T */ 00035 #endif // SUN and XOPENSOURCE=500 00036 00037 00038 #endif