Fix and simplify definition of GDK_PIXBUF_VAR:
2008-05-27 Michael Natterer <mitch@imendio.com> Fix and simplify definition of GDK_PIXBUF_VAR: * Makefile.am: add -DGDK_PIXBUF_COMPILATION to INCLUDES. * gdk-pixbuf.c: don't #define it here. Remove GDK_PIXBUF_VAR from the definition of the version variables. * gdk-pixbuf-features.h.in: in the !G_PLATFORM_WIN32 case, always define GDK_PIXBUF_VAR to "extern". Remove redundant #ifndef GDK_PIXBUF_VAR around the whole block, the header itself already has include guards. svn path=/trunk/; revision=20188
This commit is contained in:
committed by
Michael Natterer
parent
727a7dbf46
commit
f498fc887f
@ -27,7 +27,6 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define GDK_PIXBUF_COMPILATION
|
||||
#include "gdk-pixbuf.h"
|
||||
#include "gdk-pixbuf-private.h"
|
||||
/* Include the marshallers */
|
||||
@ -508,11 +507,11 @@ gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf)
|
||||
|
||||
|
||||
/* General initialization hooks */
|
||||
GDK_PIXBUF_VAR const guint gdk_pixbuf_major_version = GDK_PIXBUF_MAJOR;
|
||||
GDK_PIXBUF_VAR const guint gdk_pixbuf_minor_version = GDK_PIXBUF_MINOR;
|
||||
GDK_PIXBUF_VAR const guint gdk_pixbuf_micro_version = GDK_PIXBUF_MICRO;
|
||||
const guint gdk_pixbuf_major_version = GDK_PIXBUF_MAJOR;
|
||||
const guint gdk_pixbuf_minor_version = GDK_PIXBUF_MINOR;
|
||||
const guint gdk_pixbuf_micro_version = GDK_PIXBUF_MICRO;
|
||||
|
||||
GDK_PIXBUF_VAR const char *gdk_pixbuf_version = GDK_PIXBUF_VERSION;
|
||||
const char *gdk_pixbuf_version = GDK_PIXBUF_VERSION;
|
||||
|
||||
/* Error quark */
|
||||
GQuark
|
||||
|
||||
Reference in New Issue
Block a user