macro GPOINTER_TO_UINT

This commit is contained in:
Nguyen Anh Quynh 2017-01-02 01:00:11 +08:00
parent 07aa027167
commit 3fa50fc06a

View file

@ -32,7 +32,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "glib_compat.h" #include "glib_compat.h"
#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) #ifndef _WIN64
#define GPOINTER_TO_UINT(p) ((guint) (p))
#else
#define GPOINTER_TO_UINT(p) ((guint) (guint64) (p))
#endif
#define G_MAXINT INT_MAX #define G_MAXINT INT_MAX
/* All functions below added to eliminate GLIB dependency */ /* All functions below added to eliminate GLIB dependency */