Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
6c025773
Commit
6c025773
authored
Apr 28, 2004
by
Lynn Garren
Browse files
fixing the drand48 problem
parent
2f2aa32b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Random/Random/RandomFunc.h
View file @
6c025773
// -*- C++ -*-
// $Id: RandomFunc.h,v 1.4
2003/10/23 21:29
:5
1
garren Exp $
// $Id: RandomFunc.h,v 1.4
.2.1 2004/04/28 16:04
:5
7
garren Exp $
// -----------------------------------------------------------------------
// HEP RandomFunc
// get proper system headers for drand, etc.
...
...
@@ -43,13 +43,20 @@ extern "C" {
namespace
CLHEP
{
#ifdef WIN32
#include
"drand48.src"
#endif
/* WIN32 */
//#ifdef WIN32
//#include "drand48.src"
//#endif /* WIN32 */
//#ifdef __APPLE__
//#include "drand48.src"
//#endif /* __APPLE__ */
#ifdef __APPLE__
// configure checks for drand48
#ifndef HAVE_DRAND48
#if !defined(__GNUC__) // IRIX gets confused
#include
"drand48.src"
#endif
/* __APPLE__ */
#endif
#endif
}
// namespace CLHEP
...
...
Random/src/RandEngine.cc
View file @
6c025773
// $Id: RandEngine.cc,v 1.4 200
3
/0
8/13 20:00:12
garren Exp $
// $Id: RandEngine.cc,v 1.4
.2.1
200
4
/0
4/28 16:04:57
garren Exp $
// -*- C++ -*-
//
// -----------------------------------------------------------------------
...
...
@@ -27,9 +27,9 @@
#include
"CLHEP/Random/defs.h"
#include
"CLHEP/Random/RandEngine.h"
#include
"CLHEP/Random/Random.h"
#include
"CLHEP/Random/RandomFunc.h"
#include
<string.h>
#include
<cmath>
// for pow()
#include
<stdlib.h>
// for int()
namespace
CLHEP
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment