Blob Blame History Raw
--- _pylibmcmodule.c.orig	2012-04-22 08:33:26.000000000 +0200
+++ _pylibmcmodule.c	2012-04-22 08:40:30.000000000 +0200
@@ -65,7 +65,7 @@
 
 static void PylibMC_ClientType_dealloc(PylibMC_Client *self) {
     if (self->mc != NULL) {
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
+#if LIBMEMCACHED_WITH_SASL_SUPPORT
         if (self->sasl_set) {
             memcached_destroy_sasl_auth_data(self->mc);
         }
@@ -98,7 +98,7 @@
     /* setup sasl */
     if (user != NULL || pass != NULL) {
 
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
+#if LIBMEMCACHED_WITH_SASL_SUPPORT
         if (user == NULL || pass == NULL) {
             PyErr_SetString(PyExc_TypeError, "SASL requires both username and password");
             goto error;
@@ -2014,7 +2014,7 @@
 }
 
 static int _init_sasl(void) {
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
+#if LIBMEMCACHED_WITH_SASL_SUPPORT
     int rc;
 
     /* sasl_client_init needs to be called once before using SASL, and
@@ -2163,7 +2163,7 @@
     PyModule_AddStringConstant(module,
             "libmemcached_version", LIBMEMCACHED_VERSION_STRING);
 
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
+#if LIBMEMCACHED_WITH_SASL_SUPPORT
     PyModule_ADD_REF(module, "support_sasl", Py_True);
 #else
     PyModule_ADD_REF(module, "support_sasl", Py_False);