ROOT
6.18/05
Reference Guide
roofit
roofitcore
inc
RooFit.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooFit.h,v 1.4 2007/05/11 09:11:30 verkerke Exp $
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
#ifndef ROO_FIT
17
#define ROO_FIT
18
19
#include <
ROOT/RConfig.hxx
>
20
21
// Global include file to fix occasional compiler issues
22
// An error in the construction of the system and C++ header files on
23
// Solaris 8 / Workshop 6 Updates 1&2 leads to a conflict between the use
24
// of ::clock_t and clock_t when <string> is compiled under
25
// -D_XOPEN_SOURCE=500. The following code ensures that ::clock_t is
26
// always defined and thus allows <string> to compile.
27
// This is just a workaround and should be monitored as compiler and
28
// operating system versions evolve.
29
#if defined(__SUNPRO_CC) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0 == 500 )
30
#ifndef _CLOCK_T
31
#define _CLOCK_T
32
typedef
long
clock_t;
/* relative time in a
33
specified resolution */
34
#endif
/* ifndef _CLOCK_T */
35
#endif
// SUN and XOPENSOURCE=500
36
37
38
#endif
RConfig.hxx