mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-18 03:31:57 +02:00
Tue Feb 22 22:03:38 2005 Manish Singh <yosh@gimp.org> * glib/gstdio.h: On G_OS_UNIX, simple #define g_open and co. as aliases for their respective C library functions, instead of using the function wrappers. This avoids library users having to care about matching large file support with whatever glib has been built with. Fixes bug #167942. * glib/gstdio.c * glib/abicheck.sh * glib/glib.symbols * glib/makegalias.pl: Logic to make the gstdio wrappers still available for compatibility, but not used in new code.
14 lines
523 B
Bash
Executable File
14 lines
523 B
Bash
Executable File
#! /bin/sh
|
|
|
|
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
|
|
|
cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DG_STDIO_NO_WRAP_ON_UNIX $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
|
rm glibconfig.cpp
|
|
|
|
nm -D .libs/libglib-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
|
|
|
|
diff -u expected-abi actual-abi && rm expected-abi actual-abi
|