mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 23:59:37 +02:00
FileDialog: Do not include (private) config.h in public header.
This commit is contained in:
parent
d282aa07ec
commit
ec44019744
@ -17,24 +17,12 @@ custom controls.
|
||||
#ifndef _FILE_DIALOG_H_
|
||||
#define _FILE_DIALOG_H_
|
||||
|
||||
#if defined(__WXGTK__)
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/filedlg.h"
|
||||
|
||||
typedef void (*fdCallback)(void *, int);
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
#include "mac/FileDialogPrivate.h"
|
||||
#elif defined(__WXMSW__)
|
||||
#include "win/FileDialogPrivate.h"
|
||||
#elif defined(__WXGTK__) && defined(HAVE_GTK)
|
||||
#include "gtk/FileDialogPrivate.h"
|
||||
#else
|
||||
#include "generic/FileDialogPrivate.h"
|
||||
#endif
|
||||
#include "FileDialogPrivate.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: filedlg.h
|
||||
|
1
lib-src/FileDialog/FileDialogPrivate.h.in
Normal file
1
lib-src/FileDialog/FileDialogPrivate.h.in
Normal file
@ -0,0 +1 @@
|
||||
#include "@IMPLEMENTATION@/FileDialogPrivate.h"
|
@ -71,30 +71,36 @@ dnl OS-specific configuration
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
IMPLEMENTATION="generic"
|
||||
case "${host_os}" in
|
||||
darwin*)
|
||||
dnl Mac OS X configuration
|
||||
mac="yes"
|
||||
IMPLEMENTATION="mac"
|
||||
;;
|
||||
|
||||
cygwin*)
|
||||
dnl Windows/CygWin configuration
|
||||
windows="yes"
|
||||
IMPLEMENTATION="win"
|
||||
;;
|
||||
|
||||
*)
|
||||
if test "$have_gtk" = "yes"; then
|
||||
AC_DEFINE(HAVE_GTK, 1, [Define to 1 if GTK+ is available.])
|
||||
IMPLEMENTATION="gtk"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
AM_CONDITIONAL([MAC], test "$mac" = "yes")
|
||||
AM_CONDITIONAL([WINDOWS], test "$windows" = "yes")
|
||||
AM_CONDITIONAL([GTK], test "$have_gtk" = "yes")
|
||||
AC_SUBST([IMPLEMENTATION])
|
||||
AM_CONDITIONAL([GENERIC], test "$IMPLEMENTATION" = "generic")
|
||||
AM_CONDITIONAL([GTK], test "$IMPLEMENTATION" = "gtk")
|
||||
AM_CONDITIONAL([MAC], test "$IMPLEMENTATION" = "mac")
|
||||
AM_CONDITIONAL([WINDOWS], test "$IMPLEMENTATION" = "win")
|
||||
|
||||
echo "Implementation to use: $IMPLEMENTATION"
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([FileDialogPrivate.h Makefile])
|
||||
|
||||
#
|
||||
# Write it all out
|
||||
|
Loading…
x
Reference in New Issue
Block a user