]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Standard include file to include different files for different compiler versions.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Aug 2002 16:26:20 +0000 (16:26 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Aug 2002 16:26:20 +0000 (16:26 +0000)
HLT/src/AliL3StandardIncludes.h [new file with mode: 0644]

diff --git a/HLT/src/AliL3StandardIncludes.h b/HLT/src/AliL3StandardIncludes.h
new file mode 100644 (file)
index 0000000..a0135e4
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef ALIL3STANDARDINCLUDESH
+#define ALIL3STANDARDINCLUDESH
+
+#if GCCVERSION == 3
+
+#include <cstdio>
+#include <cmath>
+#include <cstring>
+#include <ctime>
+#include <cstdlib>
+
+#include <iostream>
+
+/* Use these only if absolutely necessary 
+eg. in inline functions defined in header files */
+#define STDCOUT std::cout
+#define STDCERR std::cerr
+#define STDENDL std::endl
+
+#else
+
+#include <stdio.h>
+#include <math.h>
+#include <string.h>
+#include <time.h>
+#include <stdlib.h>
+
+#include <iostream.h>
+
+/* Use these only if absolutely necessary 
+eg. in inline functions defined in header files */
+#define STDCOUT cout
+#define STDCERR cerr
+#define STDENDL endl
+
+#endif //GCCVERSION
+
+#endif
+