From 50e42357ea5eb3d16185f3b1019ed21bd2314cc9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 19 Mar 2003 11:25:21 +0000 Subject: Fix compiler warning. (This used to be commit 74c1cd0040890d24e6191d4cb0467e9f9d70f5dc) --- source3/python/py_tdb.c | 8 ++++++++ source3/python/py_winreg.h | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/python/py_tdb.c b/source3/python/py_tdb.c index e525422a30..37f64ce780 100644 --- a/source3/python/py_tdb.c +++ b/source3/python/py_tdb.c @@ -27,6 +27,14 @@ */ #include "includes.h" + +/* This symbol is used in both includes.h and Python.h which causes an + annoying compiler warning. */ + +#ifdef HAVE_FSTAT +#undef HAVE_FSTAT +#endif + #include "Python.h" /* Tdb exception */ diff --git a/source3/python/py_winreg.h b/source3/python/py_winreg.h index e19674d218..95d5fc6ea9 100644 --- a/source3/python/py_winreg.h +++ b/source3/python/py_winreg.h @@ -21,9 +21,6 @@ #ifndef _PY_WINREG_H #define _PY_WINREG_H -#include "includes.h" -#include "Python.h" - #include "python/py_common.h" #endif /* _PY_WINREG_H */ -- cgit