New macro COMPAT_VERSION_NEWPROTO.

lib/
	* eu-config.h (COMPAT_VERSION_NEWPROTO): New.  Twice.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
This commit is contained in:
Jan Kratochvil
2013-04-28 20:10:33 +02:00
parent 807ea3155d
commit fba1588ee4
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
2013-04-30 Jan Kratochvil <jan.kratochvil@redhat.com>
* eu-config.h (COMPAT_VERSION_NEWPROTO): New. Twice.
2013-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* system.h (LE64, BE64): Move here the definitions from
+6
View File
@@ -170,12 +170,18 @@ asm (".section predict_data, \"aw\"; .previous\n"
".symver _compat." #version "." #name "," #name "@" #version);
# define NEW_VERSION(name, version) \
asm (".symver " #name "," #name "@@@" #version);
# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
asm (".symver _compat." #version "." #name "," #name "@" #version); \
__typeof (_compat_##prefix##_##name) _compat_##prefix##_##name \
asm ("_compat." #version "." #name);
# define COMPAT_VERSION(name, version, prefix) \
asm (".symver _compat." #version "." #name "," #name "@" #version); \
__typeof (name) _compat_##prefix##_##name asm ("_compat." #version "." #name);
#else
# define OLD_VERSION(name, version) /* Nothing for static linking. */
# define NEW_VERSION(name, version) /* Nothing for static linking. */
# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
error "should use #ifdef SHARED"
# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SHARED"
#endif