Changeset 119

Show
Ignore:
Timestamp:
21/10/08 17:28:46 (3 months ago)
Author:
smoku
Message:

Reverted libgadu 1.8.1.
It does not handle large number of connections. After many connected users, more GG server connections timeouted.

Location:
jggtrans
Files:
4 removed
12 modified
23 copied

Legend:

Unmodified
Added
Removed
  • jggtrans/libgadu/AUTHORS

    r99 r119  
    1 Wymienione osoby miały mniejszy lub większy wpływ na rozwój biblioteki 
    2 i klienta. Niektórzy pisali kod, pomagali analizować protokół, testowali 
    3 na róŌnych systemach, inni podsyłali patche i bugreporty. Jeśli ktoś 
    4 został pominięty, niech da znać. W kaÅŒdym razie za to, jak wyglÄ 
    5 da ekg i 
    6 libgadu, odpowiedzialni sÄ 
    7  (w porzÄ 
    8 dku alfabetycznym): 
    9  
    10 Tomasz Chiliński <chilek@chilan.com> 
    11 Piotr Domagalski <szalik@szalik.net> 
    12 Rafał Florek <raf@regionet.regionet.pl> 
    13 Dawid Jarosz <dawjar@poczta.onet.pl> 
    14 Tomasz Jarzynka <tomee@cpi.pl> 
    15 Robert J. Woźny <speedy@ziew.org> 
    16 Wojtek Kaniewski <wojtekka@irc.pl> 
    17 Marek Kozina <klith@irc.pl> 
    18 Marcin KrzyÅŒanowski <krzak@hakore.com> 
    19 Piotr Kupisiewicz <deli@rzepaknet.us> 
    20 Adam Ludwikowski <adam.ludwikowski@wp.pl> 
    21 Piotr Mach [pm] <p@gg.wha.la> 
    22 Rafał Malinowski <malinowskirafal@wp.pl> 
    23 Arkadiusz Miśkiewicz <arekm@pld-linux.org> 
    24 Marcin Owsiany <porridge@debian.org> 
    25 Marcin Ślusarz <joi@kadu.net> 
    26 Adam Wysocki <gophi@ekg.chmurka.net> 
    27 Piotr Wysocki <wysek@linux.bydg.org> 
    28 Jakub Zawadzki <darkjames@darkjames.ath.cx> 
    29  
    30 Marek Antoniak <kfazi@kfazi.polnet.trzepak.pl> 
    31 Michał Bartoszkiewicz <embe@magma-net.pl> 
    32 Wojciech Bojdoł <wojboj@htcon.pl> 
    33 Artur Gawryszczak <gawrysz@camk.edu.pl> 
    34 Krzysztof Gibas [sdas] <duparyba@wp.pl> 
    35 Stanisław Gurgacz <sgurgacz@o2.pl> 
    36 Rafał Janiczek <jojo@dexter.zst.bytom.pl> 
    37 Marcin Mikuła <meecash@meecash.prv.pl> 
    38 Jacek Osiecki <joshua@ceti.pl> 
    39 Adam Osuchowski <adwol@polsl.gliwice.pl> 
    40 Paweł Pruszkowski <arim@botrm.org> 
    41 Adrian Smarzewski <adrians@aska.com.pl> 
    42 Adam Strzelecki <ono@java.pl> 
    43 Szymon Zygmunt <zigi@student.agh.edu.pl> 
    44  
    45 Wykorzystano kod udostępniony na zasadach domeny publicznej autorstwa: 
    46  
    47 Steve Reid <steve@edmweb.com> 
  • jggtrans/libgadu/ChangeLog

    r99 r119  
    1 Lista zmian w kodzie źródłowym: 
    2 http://toxygen.net/websvn/log.php?repname=libgadu 
    3  
    4 Lista zmian w interfejsie biblioteki: 
    5 http://toxygen.net/libgadu/docs/group__changelog.html 
  • jggtrans/libgadu/config.h.in

    r113 r119  
    11/* config.h.in.  Generated from configure.ac by autoheader.  */ 
    2  
    3 /* Defined if libgadu was compiled for bigendian machine. */ 
    4 #undef GG_CONFIG_BIGENDIAN 
    5  
    6 /* Defined if this machine has C99-compiliant vsnprintf(). */ 
    7 #undef GG_CONFIG_HAVE_C99_VSNPRINTF 
    8  
    9 /* Defined if this machine has gethostbyname_r(). */ 
    10 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R 
    11  
    12 /* Defined if uintX_t types are defined in <inttypes.h>. */ 
    13 #undef GG_CONFIG_HAVE_INTTYPES_H 
    14  
    15 /* Defined if this machine supports long long. */ 
    16 #undef GG_CONFIG_HAVE_LONG_LONG 
    17  
    18 /* Defined if libgadu was compiled and linked with pthread support. */ 
    19 #undef GG_CONFIG_HAVE_PTHREAD 
    20  
    21 /* Defined if uintX_t types are defined in <stdint.h>. */ 
    22 #undef GG_CONFIG_HAVE_STDINT_H 
    23  
    24 /* Defined if uintX_t types are defined in <sys/inttypes.h>. */ 
    25 #undef GG_CONFIG_HAVE_SYS_INTTYPES_H 
    26  
    27 /* Defined if uintX_t types are defined in <sys/int_types.h>. */ 
    28 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H 
    29  
    30 /* Defined if uintX_t types are defined in <sys/types.h>. */ 
    31 #undef GG_CONFIG_HAVE_SYS_TYPES_H 
    32  
    33 /* Defined if this machine has va_copy(). */ 
    34 #undef GG_CONFIG_HAVE_VA_COPY 
    35  
    36 /* Defined if this machine has __va_copy(). */ 
    37 #undef GG_CONFIG_HAVE___VA_COPY 
    38  
    39 /* Library version */ 
    40 #undef GG_LIBGADU_VERSION 
    412 
    423/* Define to 1 if you have the <dlfcn.h> header file. */ 
     
    456/* Define to 1 if you have the `gethostbyname_r' function. */ 
    467#undef HAVE_GETHOSTBYNAME_R 
     8 
     9/* Define to 1 if you have the `inet_pton' function. */ 
     10#undef HAVE_INET_PTON 
    4711 
    4812/* Define to 1 if you have the <inttypes.h> header file. */ 
     
    7640#undef HAVE_UNISTD_H 
    7741 
    78 /* Define to the sub-directory in which libtool stores uninstalled libraries. 
    79    */ 
    80 #undef LT_OBJDIR 
     42/* Define to 1 if your C compiler doesn't accept -c and -o together. */ 
     43#undef NO_MINUS_C_MINUS_O 
    8144 
    8245/* Name of package */ 
  • jggtrans/libgadu/configure.ac

    r113 r119  
    1 dnl $Id: configure.ac 614 2008-06-02 21:16:59Z wojtekka $ 
    2  
    3 AC_INIT(src/libgadu.c) 
    4 AM_INIT_AUTOMAKE(libgadu, 1.8.1) 
     1dnl $Id: configure.in,v 1.154 2004/06/28 10:13:09 deletek Exp $ 
     2 
     3AC_INIT([libgadu],[20050128.jggtrans.1],[]) 
     4AC_CONFIG_SRCDIR([lib/libgadu.h]) 
     5AM_INIT_AUTOMAKE 
    56 
    67AC_PREREQ(2.50) 
     
    910AC_CONFIG_HEADERS(config.h include/libgadu.h) 
    1011 
     12AC_SUBST(CFLAGS_LIBGADU) 
     13AC_SUBST(LIBS_LIBGADU) 
     14AC_SUBST(OBJS) 
     15AC_SUBST(IOCTLD_OBJS) 
     16AC_SUBST(PC_REQUIRES) 
     17 
     18AC_SUBST(strip_ekg, "") 
     19AC_SUBST(strip_ioctld, "") 
     20AC_SUBST(strip_libgadu_so, "") 
     21 
     22AC_SUBST(ioctld, "") 
     23AC_SUBST(install_ioctld, "") 
     24 
     25AC_SUBST(shared, "") 
     26AC_SUBST(install_shared, "") 
     27 
     28AC_SUBST(lgadu, "") 
     29AC_SUBST(libgadu_a, "") 
     30 
     31AC_SUBST(static, "static") 
     32AC_SUBST(install_static, "install-static") 
     33 
     34AC_SUBST(ekg, "") 
     35AC_SUBST(install_ekg, "") 
     36AC_SUBST(clean_ekg, "") 
     37AC_SUBST(distclean_ekg, "") 
     38AC_SUBST(uninstall_ekg, "") 
     39AC_SUBST(dep_ekg, "") 
     40 
     41AC_SUBST(make_ekgwap, "") 
     42AC_SUBST(install_ekgwap, "") 
     43 
     44dnl 
     45dnl  Zaczynamy testy... 
     46dnl 
     47 
    1148AC_PROG_CC 
    1249AC_PROG_CPP 
     50AM_PROG_CC_C_O 
    1351AC_PROG_INSTALL 
    1452AC_PROG_LN_S 
     
    1654AC_PROG_LIBTOOL 
    1755 
    18 AC_SUBST(REQUIRES) 
    19 AC_SUBST(INCLUDES) 
    20  
    21 if test "$GCC"; then 
    22         CFLAGS="$CFLAGS -Wall" 
    23 fi 
     56AC_PATH_PROG(GMAKE, gmake, no) 
     57 
     58if test "x$GMAKE" = "xno"; then 
     59        AC_PATH_PROG(MAKE, make, no) 
     60 
     61        if test "x$MAKE" = "xno"; then 
     62                AC_MSG_ERROR([make ]) 
     63        fi 
     64else 
     65        MAKE="$GMAKE" 
     66fi 
     67 
     68AC_CHECK_TOOL(AR, ar, no) 
     69 
     70if test "x$AR" = "xno"; then 
     71        AC_MSG_ERROR([ar ]) 
     72fi 
     73 
     74AC_CHECK_TOOL(STRIP, strip, :) 
     75 
     76dnl 
     77dnl  Tworzymy osobny plik lib/libgadu-config.h niezale?ny od autoconfa 
     78dnl  z w?asn? przestrzeni? nazw (__GG_LIBGADU), ?eby m?c go spokojnie 
     79dnl  w??czy? w <libgadu.h> 
     80dnl 
     81 
     82mkdir -p lib 
     83 
     84AC_DEFUN([AC_LIBGADU_DEFINE], 
     85[ 
     86        sed 's/#undef __GG_LIBGADU_$1/#define __GG_LIBGADU_$1/' < lib/libgadu-config.h > lib/libgadu-config.h- 
     87        mv -f lib/libgadu-config.h- lib/libgadu-config.h 
     88]) 
     89 
     90AC_DEFUN([AC_LIBGADU_UNDEF], 
     91[ 
     92        sed 's/#undef __GG_LIBGADU_$1.*/\/* & *\//' < lib/libgadu-config.h > lib/libgadu-config.h- 
     93        mv -f lib/libgadu-config.h- lib/libgadu-config.h 
     94]) 
     95 
     96echo "/* Generated automatically by configure. Do not edit. */" > lib/libgadu-config.h 
     97cat ${srcdir}/lib/libgadu-config.h.in >> lib/libgadu-config.h 
     98 
     99dnl 
     100dnl  Najpierw sprawdzamy te opcje, kt?re s? wsp?lne dla libgadu i ekg. 
     101dnl 
    24102 
    25103AC_C_BIGENDIAN 
    26104 
    27105if test "x$ac_cv_c_bigendian" = "xyes"; then 
    28         AC_DEFINE([GG_CONFIG_BIGENDIAN], [], [Defined if libgadu was compiled for bigendian machine.]) 
     106        AC_LIBGADU_DEFINE([BIGENDIAN]) 
    29107fi 
    30108 
    31109AC_NEED_STDINT_H 
    32110 
    33 if test "x$STDINT_H" = "xstdint.h"; then 
    34         AC_DEFINE([GG_CONFIG_HAVE_STDINT_H], [], [Defined if uintX_t types are defined in <stdint.h>.]) 
    35 fi 
    36  
    37 if test "x$STDINT_H" = "xinttypes.h"; then 
    38         AC_DEFINE([GG_CONFIG_HAVE_INTTYPES_H], [], [Defined if uintX_t types are defined in <inttypes.h>.]) 
    39 fi 
    40  
    41 if test "x$STDINT_H" = "xsys/inttypes.h"; then 
    42         AC_DEFINE([GG_CONFIG_HAVE_SYS_INTTYPES_H], [], [Defined if uintX_t types are defined in <sys/inttypes.h>.]) 
    43 fi 
    44  
    45 if test "x$STDINT_H" = "xsys/int_types.h"; then 
    46         AC_DEFINE([GG_CONFIG_HAVE_SYS_INT_TYPES_H], [], [Defined if uintX_t types are defined in <sys/int_types.h>.]) 
    47 fi 
    48  
    49 if test "x$STDINT_H" = "xsys/types.h"; then 
    50         AC_DEFINE([GG_CONFIG_HAVE_SYS_TYPES_H], [], [Defined if uintX_t types are defined in <sys/types.h>.]) 
    51 fi 
    52  
    53 AC_DEFINE([GG_LIBGADU_VERSION], [], [Library version]) 
    54 AC_DEFINE_UNQUOTED(GG_LIBGADU_VERSION, "${VERSION}") 
     111if test "x$STDINT_H" = "x"; then 
     112        cp stdint.h lib/libgadu-stdint.h 
     113        STDINT_H=libgadu-stdint.h  
     114fi 
     115 
     116sed "s/#include <stdint.h>/#include <$STDINT_H>/" < lib/libgadu-config.h > lib/libgadu-config.h- 
     117mv -f lib/libgadu-config.h- lib/libgadu-config.h 
    55118 
    56119dnl SunOS 
    57  
    58120AC_CHECK_LIB(nsl, t_accept, LIBS="$LIBS -lnsl") 
    59121AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") 
     
    62124 
    63125AC_ARG_WITH(bind, 
    64         [  --without-bind          Disable linking with libbind when found]) 
     126  [  --without-bind          Disable linking with libbind when found]) 
    65127 
    66128if test "x$with_bind" != "xno"; then 
     
    69131 
    70132dnl threadsafe 
    71  
    72 AC_CHECK_FUNCS([gethostbyname_r], [AC_DEFINE([GG_CONFIG_HAVE_GETHOSTBYNAME_R], [], [Defined if this machine has gethostbyname_r().])]) 
     133AC_CHECK_FUNCS([gethostbyname_r], [AC_LIBGADU_DEFINE([HAVE_GETHOSTBYNAME_R])]) 
     134 
     135dnl inet_pton 
     136AC_CHECK_FUNCS(inet_pton) 
    73137 
    74138AC_MSG_CHECKING([for va_copy]) 
    75 AC_TRY_LINK([#include <stdarg.h>], [va_list a, b; va_copy(a, b);],  
    76 [ 
     139AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[va_list a, b; va_copy(a, b);]])],[ 
    77140        AC_MSG_RESULT([yes]) 
    78         AC_DEFINE([GG_CONFIG_HAVE_VA_COPY], [], [Defined if this machine has va_copy().]) 
    79 ], [ 
     141        AC_LIBGADU_DEFINE([HAVE_VA_COPY]) 
     142],[ 
    80143        AC_MSG_RESULT([no]) 
    81144]) 
    82145 
    83146AC_MSG_CHECKING([for __va_copy]) 
    84 AC_TRY_LINK([#include <stdarg.h>], [va_list a, b; __va_copy(a, b);],  
    85 [ 
     147AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[va_list a, b; __va_copy(a, b);]])],[ 
    86148        AC_MSG_RESULT([yes]) 
    87         AC_DEFINE([GG_CONFIG_HAVE___VA_COPY], [], [Defined if this machine has __va_copy().]) 
    88 ], [ 
     149        AC_LIBGADU_DEFINE([HAVE___VA_COPY]) 
     150],[ 
    89151        AC_MSG_RESULT([no]) 
    90152]) 
     
    93155        [  --disable-debug         Compile without debugging support]) 
    94156 
    95 if test "x$enable_debug" = "xno"; then  
     157if test "x$enable_debug" = "xno"; then 
    96158        AC_MSG_WARN([--disable-debug is obsolete.]) 
    97159fi 
    98160 
    99 dnl 
    100 dnl  SprawdŒmy, jak± wersjê vsnprintf() dostajemy. Dodatkowa opcja jest 
    101 dnl  dla kompilacji skro¶nej, bo nie mo¿na wtedy korzystaæ z AC_TRY_RUN(). 
     161dnl if test "x$enable_debug" = "xno"; then  
     162dnl     CFLAGS="$CFLAGS -DGG_DEBUG_DISABLE" 
     163dnl     CFLAGS_LIBGADU="$CFLAGS_LIBGADU -DGG_DEBUG_DISABLE" 
     164dnl     strip_ekg="strip-ekg" 
     165dnl     strip_ioctld="strip-ioctld" 
     166dnl     strip_libgadu_so="strip-libgadu-so" 
     167dnl else 
     168dnl     CFLAGS="$CFLAGS -g"  
     169dnl fi 
     170 
     171dnl  
     172dnl  Jak? wersj? libgadu kompilujemy? 
     173dnl 
     174 
     175AC_ARG_ENABLE(shared, 
     176        [  --enable-shared         Compile shared version of libgadu]) 
     177 
     178lib_shared_enabled=no 
     179   
     180if test "x$enable_shared" = "xyes"; then 
     181        shared="shared" 
     182        install_shared="install-shared" 
     183        lib_shared_enabled=yes 
     184fi 
     185 
     186AC_ARG_ENABLE(static, 
     187        [  --disable-static        Don't compile static version of libgadu 
     188 
     189Optional ekg Features:]) 
     190 
     191lib_static_enabled=yes 
     192 
     193if test "x$enable_static" = "xno"; then 
     194        static="" 
     195        install_static="" 
     196        lib_static_enabled=no 
     197fi 
     198 
     199if test "x$enable_static" = "xno" -a "x$enable_shared" != "xyes"; then 
     200  AC_MSG_ERROR([You must choose either static or shared version of libgadu.]) 
     201fi 
     202 
     203AC_ARG_ENABLE(dynamic, 
     204  [  --enable-dynamic        Link ekg dynamically with libgadu]) 
     205 
     206dnl 
     207dnl  Sprawd?my, jak? wersj? vsnprintf() dostajemy. Dodatkowa opcja jest 
     208dnl  dla crosskompilacji, bo nie mo?na wtedy korzysta? z AC_RUN_IFELSE([AC_LANG_SOURCE([[]])],[],[],[]). 
    102209dnl 
    103210 
    104211AC_ARG_WITH(c99-vsnprintf, 
    105         [  --with-c99-vsnprintf    Target system has C99-compatible vsnprintf()]) 
     212  [  --with-c99-vsnprintf    Target system has C99-compatible vsnprintf()]) 
    106213 
    107214if test "x$with_c99_vsnprintf" = "xyes"; then 
    108         AC_DEFINE([GG_CONFIG_HAVE_C99_VSNPRINTF], [], [Defined if this machine has C99-compiliant vsnprintf().]) 
     215        AC_LIBGADU_DEFINE([HAVE_C99_VSNPRINTF]) 
    109216fi 
    110217 
    111218if test "x$with_c99_vsnprintf" = "x"; then 
    112219        AC_MSG_CHECKING([for C99-compatible vsnprintf()]) 
    113         AC_TRY_RUN( 
    114         [ 
     220        AC_RUN_IFELSE([AC_LANG_SOURCE([[ 
    115221                #include <stdio.h> 
    116222                int main() 
     
    119225                        return (snprintf(&tmp, sizeof(tmp), "test") != 4); 
    120226                } 
    121         ], [ 
     227        ]])],[ 
    122228                AC_MSG_RESULT([yes]) 
    123                 AC_DEFINE([GG_CONFIG_HAVE_C99_VSNPRINTF], [], [Defined if this machine has C99-compiliant vsnprintf().]) 
    124         ], [ 
     229                AC_LIBGADU_DEFINE([HAVE_C99_VSNPRINTF]) 
     230        ],[ 
    125231                AC_MSG_RESULT([no]) 
    126         ]) 
     232        ],[]) 
    127233fi 
    128234 
     
    135241 
    136242if test "x$with_pthread" = "xyes"; then 
    137         dnl najpierw sprawdzamy czy pomijaæ testy pthreads/shared 
    138         pthreads_shared_skip=0 
    139         if test "x$lib_shared_enabled" = "xno"; then 
    140                 pthreads_shared_skip=1 
    141         fi 
    142243        ACX_PTHREAD( 
    143244        [ 
    144                 dnl workaround dla pkgconfiga 
     245                dnl workaround dla pkconfiga 
    145246                if test "x$PTHREAD_CFLAGS" = "x-pthread"; then 
    146247                        PTHREAD_LIBS="$PTHREAD_LIBS -pthread" 
     
    149250                LIBS="$PTHREAD_LIBS $LIBS" 
    150251                CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 
    151                 INCLUDES="$INCLUDES $PTHREAD_CFLAGS" 
     252                CFLAGS_LIBGADU="$CFLAGS_LIBGADU $PTHREAD_CFLAGS" 
    152253                CC="$PTHREAD_CC" 
    153254                have_pthread=yes 
    154255 
    155                 AC_DEFINE([GG_CONFIG_HAVE_PTHREAD], [], [Defined if libgadu was compiled and linked with pthread support.]) 
     256                AC_LIBGADU_DEFINE([HAVE_PTHREAD]) 
    156257        ], [ 
    157258                AC_MSG_ERROR([Your system is not supporting pthreads]) 
    158         ], [$pthreads_shared_skip]) 
    159 fi 
    160  
    161 dnl 
    162 dnl  Sprawdzamy, czy jest ,,long long'' na potrzeby obliczeñ czasów DCC 
     259        ]) 
     260fi 
     261 
     262dnl 
     263dnl  Sprawdzamy, czy jest ,,long long'' na potrzeby oblicze? czas?w DCC 
    163264dnl 
    164265 
    165266AC_MSG_CHECKING([for long long]) 
    166267 
    167 AC_TRY_COMPILE([], 
    168 [ 
     268AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ 
    169269        long long a = 1LL; 
    170270        unsigned long long b = 1LL; 
    171 ], [ 
     271]])],[ 
    172272        AC_MSG_RESULT([yes]) 
    173         AC_DEFINE([GG_CONFIG_HAVE_LONG_LONG], [], [Defined if this machine supports long long.]) 
    174 ]) 
    175  
    176 AC_CONFIG_FILES([Makefile src/Makefile include/Makefile]) 
     273        AC_LIBGADU_DEFINE([HAVE_LONG_LONG]) 
     274],[]) 
     275 
     276dnl 
     277dnl  Zachowujemy opcje dla libgadu 
     278dnl 
     279 
     280LIBS_LIBGADU="$LIBS_LIBGADU $LIBS" 
     281 
     282 
     283AC_CONFIG_FILES(Makefile lib/Makefile lib/libgadu.pc) 
    177284 
    178285AC_OUTPUT 
     286 
     287echo 
     288echo "configured options:" 
     289 
     290if test "x$lib_static_enabled" = "xyes"; then 
     291        if test "x$lib_static_default" = "xyes"; then 
     292                echo " - static libgadu: enabled (default)" 
     293        else 
     294                echo " - static libgadu: enabled" 
     295        fi 
     296else 
     297        echo " - static libgadu: disabled" 
     298fi 
     299 
     300if test "x$lib_shared_enabled" = "xyes"; then 
     301        if test "x$lib_shared_default" = "xyes"; then 
     302                echo " - shared libgadu: enabled (default)" 
     303        else 
     304                echo " - shared libgadu: enabled" 
     305        fi 
     306else 
     307        echo " - shared libgadu: disabled" 
     308fi 
     309 
     310 
  • jggtrans/libgadu/include

  • jggtrans/libgadu/include/compat.h

    r100 r119  
    1 /* $Id: compat.h 506 2008-01-14 22:15:05Z wojtekka $ */ 
     1/* $Id: compat.h,v 1.3 2004/10/29 18:20:41 wojtekka Exp $ */ 
    22 
    33/* 
    44 *  (C) Copyright 2001-2002 Wojtek Kaniewski <wojtekka@irc.pl> 
    5  *                          Robert J. Woźny <speedy@ziew.org> 
     5 *                          Robert J. WoŒny <speedy@ziew.org> 
    66 * 
    77 *  This program is free software; you can redistribute it and/or modify 
     
    2020 */ 
    2121 
    22 /** 
    23  * \file compat.h 
    24  * 
    25  * \brief Makra zapewniajÄ 
    26 ce kompatybilność API na róŌnych systemach 
    27  */ 
    28  
    2922#ifndef __COMPAT_H 
    3023#define __COMPAT_H 
  • jggtrans/libgadu/include/libgadu.h.in

    r100 r119  
    1 /* $Id: libgadu.h.in 592 2008-04-15 19:02:47Z porridge $ */ 
     1/* $Id: libgadu.h,v 1.185 2006/06/30 13:21:50 gophi Exp $ */ 
    22 
    33/* 
    44 *  (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl> 
    5  *                          Robert J. Woźny <speedy@ziew.org> 
    6  *                          Arkadiusz Miśkiewicz <arekm@pld-linux.org> 
    7  *                          Tomasz Chiliński <chilek@chilan.com> 
     5 *                          Robert J. WoŒny <speedy@ziew.org> 
     6 *                          Arkadiusz Mikiewicz <arekm@pld-linux.org> 
     7 *                          Tomasz Chiliñski <chilek@chilan.com> 
    88 *                          Piotr Wysocki <wysek@linux.bydg.org> 
    99 *                          Dawid Jarosz <dawjar@poczta.onet.pl> 
     
    2222 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, 
    2323 *  USA. 
    24  */ 
    25  
    26 /** 
    27  * \file libgadu.h 
    28  * 
    29  * \brief Główny plik nagłówkowy biblioteki 
    3024 */ 
    3125 
     
    4034#endif 
    4135 
     36#include <libgadu-config.h> 
    4237#include <sys/types.h> 
    4338#include <stdio.h> 
    4439#include <stdarg.h> 
    4540 
    46 /** \cond ignore */ 
    47  
    48 /* Defined if libgadu was compiled for bigendian machine. */ 
    49 #undef GG_CONFIG_BIGENDIAN 
    50  
    51 /* Defined if this machine has gethostbyname_r(). */ 
    52 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R 
    53  
    54 /* Defined if libgadu was compiled and linked with pthread support. */ 
    55 #undef GG_CONFIG_HAVE_PTHREAD 
    56  
    57 /* Defined if this machine has C99-compiliant vsnprintf(). */ 
    58 #undef GG_CONFIG_HAVE_C99_VSNPRINTF 
    59  
    60 /* Defined if this machine has va_copy(). */ 
    61 #undef GG_CONFIG_HAVE_VA_COPY 
    62  
    63 /* Defined if this machine has __va_copy(). */ 
    64 #undef GG_CONFIG_HAVE___VA_COPY 
    65  
    66 /* Defined if this machine supports long long. */ 
    67 #undef GG_CONFIG_HAVE_LONG_LONG 
    68  
    69 /* Defined if libgadu was compiled and linked with TLS support. */ 
    70 #undef GG_CONFIG_HAVE_OPENSSL 
    71  
    72 /* Defined if uintX_t types are defined in <stdint.h>. */ 
    73 #undef GG_CONFIG_HAVE_STDINT_H 
    74  
    75 /* Defined if uintX_t types are defined in <inttypes.h>. */ 
    76 #undef GG_CONFIG_HAVE_INTTYPES_H 
    77  
    78 /* Defined if uintX_t types are defined in <sys/inttypes.h>. */ 
    79 #undef GG_CONFIG_HAVE_SYS_INTTYPES_H 
    80  
    81 /* Defined if uintX_t types are defined in <sys/int_types.h>. */ 
    82 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H 
    83  
    84 /* Defined if uintX_t types are defined in <sys/types.h>. */ 
    85 #undef GG_CONFIG_HAVE_SYS_TYPES_H 
    86  
    87 #ifdef GG_CONFIG_HAVE_OPENSSL 
     41#ifdef __GG_LIBGADU_HAVE_OPENSSL 
    8842#include <openssl/ssl.h> 
    8943#endif 
    9044 
    91 #ifdef GG_CONFIG_HAVE_STDINT_H 
    92 #include <stdint.h> 
    93 #else 
    94 #  ifdef GG_CONFIG_HAVE_INTTYPES_H 
    95 #  include <inttypes.h> 
    96 #  else 
    97 #    ifdef GG_CONFIG_HAVE_SYS_INTTYPES_H 
    98 #    include <sys/inttypes.h> 
    99 #    else 
    100 #      ifdef GG_CONFIG_HAVE_SYS_INT_TYPES_H 
    101 #      include <sys/int_types.h> 
    102 #      else 
    103 #        ifdef GG_CONFIG_HAVE_SYS_TYPES_H 
    104 #        include <sys/types.h> 
    105 #        else 
    106  
    107 #ifndef __AC_STDINT_H 
    108 #define __AC_STDINT_H 
    109  
    110 /* ISO C 9X: 7.18 Integer types <stdint.h> */ 
    111  
    112 typedef unsigned char   uint8_t; 
    113 typedef unsigned short uint16_t; 
    114 typedef unsigned int   uint32_t; 
    115  
    116 #ifndef __CYGWIN__ 
    117 #define __int8_t_defined 
    118 typedef   signed char    int8_t; 
    119 typedef   signed short  int16_t; 
    120 typedef   signed int    int32_t; 
    121 #endif 
    122  
    123 #endif /* __AC_STDINT_H */ 
    124  
    125 #        endif 
    126