Skip to content
Browse files

fe-text compatibility

  • Loading branch information...
1 parent 25b1ed4 commit bf817d40777f147051bd455c270ef45ca18833ea @youknowone youknowone committed
Showing with 10 additions and 4 deletions.
  1. +8 −2 config.h
  2. +2 −2 src/common/plugin.c
View
10 config.h
@@ -419,7 +419,9 @@
#endif
#include "config.package_name.in.h"
-#include "build_number.h"
+#if defined(FE_AQUA) || defined(FE_IOS)
+# include "build_number.h"
+#endif
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
@@ -454,7 +456,11 @@
/* #undef USING_LINUX */
-#define XCHATLIBDIR get_appdir_fs()
+#if defined(FE_AQUA) || defined(FE_IOS)
+# define XCHATLIBDIR get_appdir_fs()
+#else
+# define XCHATLIBDIR "/tmp/local/lib/xchat"
+#endif
#define XCHATSHAREDIR "${prefix}/share"
View
4 src/common/plugin.c
@@ -40,7 +40,7 @@ typedef struct session xchat_context;
#include "xchatc.h"
-#ifdef __APPLE__
+#if defined(FE_AQUA) || defined(FE_IOS)
extern char *get_appdir_fs();
extern char *get_plugin_bundle_path(char *filename);
#endif
@@ -381,7 +381,7 @@ plugin_load (session *sess, char *filename, char *arg)
#define RTLD_NOW 0
#endif
-#ifdef __APPLE__
+#if defined(FE_AQUA) || defined(FE_IOS)
size_t filenamelen = strlen(filename);
if (filenamelen > 7 && strcasecmp(".bundle", filename + filenamelen - 7) == 0) {
filename = get_plugin_bundle_path(filename);

0 comments on commit bf817d4

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