]> source.dussan.org Git - tigervnc.git/commitdiff
Oops. Need to wait until after gnutls.h is included before checking the value of...
authorDRC <dcommander@users.sourceforge.net>
Wed, 9 Feb 2011 03:27:26 +0000 (03:27 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 9 Feb 2011 03:27:26 +0000 (03:27 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4266 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/CSecurityTLS.cxx

index 8f4910d2fd7c8d9492f82661f3abc959caaa46ae..8f3e8904a19c37b1447d814d3230b4adbed1299b 100644 (file)
 #error "This header should not be compiled without HAVE_GNUTLS defined"
 #endif
 
-#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020708)
-#define GNUTLS_CERT_NOT_ACTIVATED 512
-#define GNUTLS_CERT_EXPIRED 1024
-#endif
-
-#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020301)
-#define GNUTLS_CRT_PRINT_ONELINE 1
-#endif
-
-
-
 #include <stdlib.h>
 #ifndef WIN32
 #include <unistd.h>
 
 #include <gnutls/x509.h>
 
+#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020708)
+#error here
+#define GNUTLS_CERT_NOT_ACTIVATED 512
+#define GNUTLS_CERT_EXPIRED 1024
+#endif
+
+#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020301)
+#define GNUTLS_CRT_PRINT_ONELINE 1
+#endif
+
 #define TLS_DEBUG
 
 using namespace rfb;