Skip to content
Browse files

Change hsgthread to C++ because the mingw32 windows headers seem to w…

…ork better that way.
  • Loading branch information...
1 parent 39fd2ea commit c12c9018b38d629d33347d9654cef5957f65ca86 @hamishmack hamishmack committed Oct 20, 2013
Showing with 5 additions and 2 deletions.
  1. +3 −0 gtk/Graphics/UI/Gtk/General/{hsgthread.c → hsgthread.cpp}
  2. +1 −1 gtk/gtk.cabal-renamed
  3. +1 −1 gtk/gtk3.cabal
View
3 gtk/Graphics/UI/Gtk/General/hsgthread.c → gtk/Graphics/UI/Gtk/General/hsgthread.cpp
@@ -25,6 +25,8 @@
* instead.
*/
+extern "C" {
+
#define DEFINED_LPTYPELIB
#define DEFINDE_LPTYPEINFO
#define DEFINED_LPTYPECOMP
@@ -197,3 +199,4 @@ gboolean gtk2hs_run_finalizers(gpointer data) {
return FALSE;
}
+}
View
2 gtk/gtk.cabal-renamed
@@ -355,7 +355,7 @@ Library
extensions: ForeignFunctionInterface
c-sources: Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
- Graphics/UI/Gtk/General/hsgthread.c
+ Graphics/UI/Gtk/General/hsgthread.cpp
-- Due to http://hackage.haskell.org/trac/ghc/ticket/781
-- we need to compile the hsgthread.c module with -fPIC to ensure that a global
-- variable in GLib that holds the address for the mutex lock and unlock functions
View
2 gtk/gtk3.cabal
@@ -340,7 +340,7 @@ Library
extensions: ForeignFunctionInterface
c-sources: Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
- Graphics/UI/Gtk/General/hsgthread.c
+ Graphics/UI/Gtk/General/hsgthread.cpp
-- Due to http://hackage.haskell.org/trac/ghc/ticket/781
-- we need to compile the hsgthread.c module with -fPIC to ensure that a global
-- variable in GLib that holds the address for the mutex lock and unlock functions

0 comments on commit c12c901

Please sign in to comment.
Something went wrong with that request. Please try again.