From: Simon Josefsson Date: Sun, 13 Aug 2006 15:07:45 +0000 (+0000) Subject: Move GNUTLS_POINTER_TO_INT here. X-Git-Tag: gnutls_1_5_0~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de4e8594b0de963fe89594e69c7307c430801dad;p=thirdparty%2Fgnutls.git Move GNUTLS_POINTER_TO_INT here. Add GNUTLS_INT_TO_POINTER. Based on glib macros, and suggestions from Andreas Metzler . --- diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 2060a52cde..730bdfd291 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation + * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation * * Author: Nikos Mavroyanopoulos * @@ -106,6 +106,9 @@ #define HASH2MAC(x) ((gnutls_mac_algorithm_t)x) +#define GNUTLS_POINTER_TO_INT(_) ((int) GNUTLS_POINTER_TO_INT_CAST (_)) +#define GNUTLS_INT_TO_POINTER(_) ((void*) GNUTLS_POINTER_TO_INT_CAST (_)) + typedef unsigned char opaque; typedef struct {