From 8d31c13865c0254b2f4c784677f8537b1e81593f Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 15 Jun 1998 17:21:07 +0000 Subject: [PATCH] * Corrected #include "thread.h" => #include "wx/thread.h" * Corrected the joystick.h detection stuff in configure.in git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- install/gtk/configure | 2 +- install/gtk/configure.in | 2 +- src/gtk/threadno.cpp | 1 + src/gtk/threadpsx.cpp | 2 +- src/gtk/threadsgi.cpp | 2 ++ src/gtk1/threadno.cpp | 1 + src/gtk1/threadpsx.cpp | 2 +- src/gtk1/threadsgi.cpp | 2 ++ 8 files changed, 10 insertions(+), 4 deletions(-) diff --git a/install/gtk/configure b/install/gtk/configure index a1cf20cca5..cbf6463a2a 100755 --- a/install/gtk/configure +++ b/install/gtk/configure @@ -2712,7 +2712,7 @@ else fi GTK_JOYSTICK="" -if test "$ac_cv_header_linux_joystick_h" != ""; then +if test "$ac_cv_header_linux_joystick_h" = "yes"; then GTK_JOYSTICK="gtk/joystick.cpp" fi diff --git a/install/gtk/configure.in b/install/gtk/configure.in index e1c60efb5f..4e2e279986 100644 --- a/install/gtk/configure.in +++ b/install/gtk/configure.in @@ -422,7 +422,7 @@ dnl defines HAVE_UNISTD_H dnl As it needs Linux 2.1.x for the moment: check whether the file exists (GL). AC_CHECK_HEADER(linux/joystick.h) GTK_JOYSTICK="" -if test "$ac_cv_header_linux_joystick_h" != ""; then +if test "$ac_cv_header_linux_joystick_h" = "yes"; then GTK_JOYSTICK="gtk/joystick.cpp" fi AC_SUBST(GTK_JOYSTICK) diff --git a/src/gtk/threadno.cpp b/src/gtk/threadno.cpp index 126a211fca..deccf57775 100644 --- a/src/gtk/threadno.cpp +++ b/src/gtk/threadno.cpp @@ -13,6 +13,7 @@ #endif #include "wx/wx.h" +#include "wx/thread.h" wxMutex::wxMutex() { diff --git a/src/gtk/threadpsx.cpp b/src/gtk/threadpsx.cpp index 9f6620f0c1..f6ffab19b9 100644 --- a/src/gtk/threadpsx.cpp +++ b/src/gtk/threadpsx.cpp @@ -28,7 +28,7 @@ enum thread_state { // Static variables ///////////////////////////////////////////////////////////////////////////// -#include "thread.h" +#include "wx/thread.h" static pthread_t p_mainid; wxMutex wxMainMutex; // controls access to all GUI functions diff --git a/src/gtk/threadsgi.cpp b/src/gtk/threadsgi.cpp index ea652677e1..10945b3900 100644 --- a/src/gtk/threadsgi.cpp +++ b/src/gtk/threadsgi.cpp @@ -30,6 +30,8 @@ enum thread_state { // Static variables ///////////////////////////////////////////////////////////////////////////// +#include "wx/thread.h" + static int p_mainid; wxMutex wxMainMutex; diff --git a/src/gtk1/threadno.cpp b/src/gtk1/threadno.cpp index 126a211fca..deccf57775 100644 --- a/src/gtk1/threadno.cpp +++ b/src/gtk1/threadno.cpp @@ -13,6 +13,7 @@ #endif #include "wx/wx.h" +#include "wx/thread.h" wxMutex::wxMutex() { diff --git a/src/gtk1/threadpsx.cpp b/src/gtk1/threadpsx.cpp index 9f6620f0c1..f6ffab19b9 100644 --- a/src/gtk1/threadpsx.cpp +++ b/src/gtk1/threadpsx.cpp @@ -28,7 +28,7 @@ enum thread_state { // Static variables ///////////////////////////////////////////////////////////////////////////// -#include "thread.h" +#include "wx/thread.h" static pthread_t p_mainid; wxMutex wxMainMutex; // controls access to all GUI functions diff --git a/src/gtk1/threadsgi.cpp b/src/gtk1/threadsgi.cpp index ea652677e1..10945b3900 100644 --- a/src/gtk1/threadsgi.cpp +++ b/src/gtk1/threadsgi.cpp @@ -30,6 +30,8 @@ enum thread_state { // Static variables ///////////////////////////////////////////////////////////////////////////// +#include "wx/thread.h" + static int p_mainid; wxMutex wxMainMutex; -- 2.45.2