Fix warning: 'HAVE_CLOCK_GETTIME' macro redefined

This commit is contained in:
Thomas Pointhuber 2018-08-05 12:28:10 +02:00 committed by Maciej Suminski
parent 7365cb8e52
commit 22e5e52598
5 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#include <Python.h>
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
#include <fctsys.h>
#include <pcbnew.h>
#include <pcb_edit_frame.h>

View File

@ -28,7 +28,11 @@
#ifndef PCBNEW_ACTION_PLUGINS_H
#define PCBNEW_ACTION_PLUGINS_H
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
#include <Python.h>
#undef HAVE_CLOCK_GETTIME
#include <vector>
#include <action_plugin.h>

View File

@ -29,7 +29,11 @@
#ifndef PCBNEW_FOOTPRINT_WIZARDS_H
#define PCBNEW_FOOTPRINT_WIZARDS_H
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
#include <Python.h>
#undef HAVE_CLOCK_GETTIME
#include <vector>
#include <footprint_wizard.h>

View File

@ -28,6 +28,7 @@
*/
#include <Python.h>
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
#include <pcbnew_scripting_helpers.h>
#include <pcbnew.h>

View File

@ -33,7 +33,10 @@
#undef _XOPEN_SOURCE
#endif
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
#include <Python.h>
#undef HAVE_CLOCK_GETTIME
#ifndef NO_WXPYTHON_EXTENSION_HEADERS
#ifdef KICAD_SCRIPTING_WXPYTHON
#include <wx/wxPython/wxPython.h>