diff --git a/dsl_details.cc b/dsl_details.cc index b59cf563..a62d27d5 100644 --- a/dsl_details.cc +++ b/dsl_details.cc @@ -14,7 +14,7 @@ namespace Details { using gd::wstring; using std::list; -#ifdef __WIN32 +#ifndef __linux__ // wcscasecmp() function is a GNU extension, we need to reimplement it // for non-GNU systems. diff --git a/goldendict.pro b/goldendict.pro index bc005fdf..707e8f5b 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -89,6 +89,7 @@ unix { INSTALLS += desktops2 } mac { + CONFIG += x86 x86_64 LIBS += -liconv \ -lvorbisfile \ -lvorbis \ diff --git a/maclibs/include/iconv.h b/maclibs/include/iconv.h index 35bf5239..987a11ec 100644 --- a/maclibs/include/iconv.h +++ b/maclibs/include/iconv.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1999-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. +/* Copyright (C) 1999-2003, 2005-2006, 2008-2011 Free Software Foundation, Inc. This file is part of the GNU LIBICONV Library. The GNU LIBICONV Library is free software; you can redistribute it @@ -21,7 +21,7 @@ #ifndef _LIBICONV_H #define _LIBICONV_H -#define _LIBICONV_VERSION 0x010D /* version number: (major<<8) + minor */ +#define _LIBICONV_VERSION 0x010E /* version number: (major<<8) + minor */ #if 1 && BUILDING_LIBICONV #define LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default"))) @@ -95,6 +95,11 @@ extern LIBICONV_DLL_EXPORTED size_t iconv (iconv_t cd, char* * inbuf, size_t *i extern LIBICONV_DLL_EXPORTED int iconv_close (iconv_t cd); +#ifdef __cplusplus +} +#endif + + #ifndef LIBICONV_PLUG /* Nonstandard extensions. */ @@ -112,6 +117,10 @@ extern LIBICONV_DLL_EXPORTED int iconv_close (iconv_t cd); #include #endif +#ifdef __cplusplus +extern "C" { +#endif + /* A type that holds all memory needed by a conversion descriptor. A pointer to such an object can be used as an iconv_t. */ typedef struct { @@ -227,14 +236,13 @@ extern LIBICONV_DLL_EXPORTED const char * iconv_canonicalize (const char * name) prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ extern LIBICONV_DLL_EXPORTED void libiconv_set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); - -#endif - + const char *curr_prefix); #ifdef __cplusplus } #endif +#endif + #endif /* _LIBICONV_H */ diff --git a/maclibs/lib/libhunspell-1.3.a b/maclibs/lib/libhunspell-1.3.a index f0656caf..9a21cc23 100644 Binary files a/maclibs/lib/libhunspell-1.3.a and b/maclibs/lib/libhunspell-1.3.a differ diff --git a/maclibs/lib/libiconv.a b/maclibs/lib/libiconv.a index 7dbcfbc1..1a440e03 100644 Binary files a/maclibs/lib/libiconv.a and b/maclibs/lib/libiconv.a differ diff --git a/maclibs/lib/libogg.a b/maclibs/lib/libogg.a index 57b72f44..4e19ccc1 100644 Binary files a/maclibs/lib/libogg.a and b/maclibs/lib/libogg.a differ diff --git a/maclibs/lib/libvorbis.a b/maclibs/lib/libvorbis.a index af286199..29340760 100644 Binary files a/maclibs/lib/libvorbis.a and b/maclibs/lib/libvorbis.a differ diff --git a/maclibs/lib/libvorbisfile.a b/maclibs/lib/libvorbisfile.a index 2c06702e..175b836f 100644 Binary files a/maclibs/lib/libvorbisfile.a and b/maclibs/lib/libvorbisfile.a differ