patch-src_AudacityApp_cpp 915 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-src_AudacityApp_cpp,v 1.4 2012/03/23 13:28:25 ajacoutot Exp $
  2. error: #error "Only <glib.h> can be included directly."
  3. --- src/AudacityApp.cpp.orig Mon Aug 31 12:45:38 2009
  4. +++ src/AudacityApp.cpp Fri Mar 23 13:34:45 2012
  5. @@ -21,6 +21,12 @@ It handles initialization and termination by subclassi
  6. #include <vld.h>
  7. #endif
  8. +// Newer versions of glib have a conflicting GSocket macro; the wxWindows
  9. +// one is part of a semi-public interface so needs to be kept.
  10. +#define GSocket GlibSocket
  11. +#include <gtk/gtk.h>
  12. +#undef GSocket
  13. +
  14. #include "Audacity.h" // This should always be included first
  15. #include <wx/defs.h>
  16. @@ -329,7 +335,7 @@ void QuitAudacity()
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #include <dlfcn.h>
  19. -#include <gtk/gtk.h>
  20. +#include <glib.h>
  21. typedef struct _GnomeProgram GnomeProgram;
  22. typedef struct _GnomeModuleInfo GnomeModuleInfo;