Skip to content

Commit

Permalink
fe-text compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Jun 4, 2013
1 parent 25b1ed4 commit bf817d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions config.h
Expand Up @@ -419,7 +419,9 @@
#endif #endif


#include "config.package_name.in.h" #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. */ /* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE #ifndef _ALL_SOURCE
Expand Down Expand Up @@ -454,7 +456,11 @@


/* #undef USING_LINUX */ /* #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" #define XCHATSHAREDIR "${prefix}/share"


Expand Down
4 changes: 2 additions & 2 deletions src/common/plugin.c
Expand Up @@ -40,7 +40,7 @@ typedef struct session xchat_context;


#include "xchatc.h" #include "xchatc.h"


#ifdef __APPLE__ #if defined(FE_AQUA) || defined(FE_IOS)
extern char *get_appdir_fs(); extern char *get_appdir_fs();
extern char *get_plugin_bundle_path(char *filename); extern char *get_plugin_bundle_path(char *filename);
#endif #endif
Expand Down Expand Up @@ -381,7 +381,7 @@ plugin_load (session *sess, char *filename, char *arg)
#define RTLD_NOW 0 #define RTLD_NOW 0
#endif #endif


#ifdef __APPLE__ #if defined(FE_AQUA) || defined(FE_IOS)
size_t filenamelen = strlen(filename); size_t filenamelen = strlen(filename);
if (filenamelen > 7 && strcasecmp(".bundle", filename + filenamelen - 7) == 0) { if (filenamelen > 7 && strcasecmp(".bundle", filename + filenamelen - 7) == 0) {
filename = get_plugin_bundle_path(filename); filename = get_plugin_bundle_path(filename);
Expand Down

0 comments on commit bf817d4

Please sign in to comment.