From acd3b683a7c489e592eb5d5883f78b5ca7a17464 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Sat, 8 Mar 2008 11:54:40 +0000
Subject: [PATCH] add multiple inclusion protection for TF1.h.

git-svn-id: http://root.cern.ch/svn/root/trunk@22538 27541ba8-7e3a-0410-8455-c3a389f83636
---
 hist/inc/Math/WrappedMultiTF1.h | 3 ++-
 hist/inc/Math/WrappedTF1.h      | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/hist/inc/Math/WrappedMultiTF1.h b/hist/inc/Math/WrappedMultiTF1.h
index eb63119f480..93ac6ff4ab6 100644
--- a/hist/inc/Math/WrappedMultiTF1.h
+++ b/hist/inc/Math/WrappedMultiTF1.h
@@ -18,8 +18,9 @@
 #include "Math/IParamFunction.h"
 #endif
 
-
+#ifndef ROOT_TF1
 #include "TF1.h"
+#endif
 
 namespace ROOT { 
 
diff --git a/hist/inc/Math/WrappedTF1.h b/hist/inc/Math/WrappedTF1.h
index 4884f7d781b..fecf22c7934 100644
--- a/hist/inc/Math/WrappedTF1.h
+++ b/hist/inc/Math/WrappedTF1.h
@@ -18,8 +18,9 @@
 #include "Math/IParamFunction.h"
 #endif
 
-
+#ifndef ROOT_TF1
 #include "TF1.h"
+#endif
 #include <cmath>
 
 namespace ROOT { 
-- 
GitLab