Define COMP method function prototypes properly.
[openssl.git] / crypto / comp / comp_err.c
index 77a3f7070c511899203f40fe4f696be6be3350d9..54edbb0e9aa643b9e5f0fb275e2178d92b9e3982 100644 (file)
  */
 
 /* NOTE: this file was auto generated by the mkerr.pl script: any changes
- * made to it will be overwritten when the script next updates this file.
+ * made to it will be overwritten when the script next updates this file,
+ * only reason strings will be preserved.
  */
 
 #include <stdio.h>
 #include <openssl/err.h>
 #include <openssl/comp.h>
+#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_ERR is defined */
 
 /* BEGIN ERROR CODES */
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
 static ERR_STRING_DATA COMP_str_functs[]=
        {
 {0,NULL}
@@ -82,7 +84,7 @@ void ERR_load_COMP_strings(void)
        if (init)
                {
                init=0;
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
                ERR_load_strings(ERR_LIB_COMP,COMP_str_functs);
                ERR_load_strings(ERR_LIB_COMP,COMP_str_reasons);
 #endif