]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/kpath-private.hh
* stepmake/aclocal.m4 (STEPMAKE_KPATHSEA): Do not include
[lilypond.git] / lily / include / kpath-private.hh
index d8fa199e665cd05453dcb378c16726c2e271aa9f..0814b5c6d68b6d944b61a1a4c5fa1924a7c86d69 100644 (file)
 #ifndef KPATH_PRIVATE_HH
 #define KPATH_PRIVATE_HH
 
+#include "config.hh"
+
+#define popen KPATHSEA_HAS_POPEN_PROTOTYPE_PROBLEM
+#define pclose KPATHSEA_HAS_PCLOSE_PROTOTYPE_PROBLEM
+#define getopt KPATHSEA_HAS_GETOPT_PROTOTYPE_PROBLEM
+
+#if HAVE_KPATHSEA_KPATHSEA_H
+extern "C" {
+  #include <kpathsea/kpathsea.h>
+  #include <kpathsea/tex-file.h>
+  extern void *kpathsea_handle;
+  extern char *(*dl_kpse_find_file) (char const*, kpse_file_format_type,
+                                    boolean);
+  extern char const *(*dl_kpse_init_format) (kpse_file_format_type);
+  extern void (*dl_kpse_maketex_option) (char const*, boolean);
+  extern void (*dl_kpse_set_program_name) (char const*);
+  extern char *(*dl_kpse_var_expand) (char const*);
+  extern kpse_format_info_type (*dl_kpse_format_info)[kpse_last_format];
+}
+#endif
+
 kpse_file_format_type kpathsea_find_format (String name);
 
 #endif /* KPATH_PRIVATE_HH */