2
0
Эх сурвалжийг харах

- fixed missing #ifndefs.

Jan Janak 22 жил өмнө
parent
commit
84bd6ec234
4 өөрчлөгдсөн 15 нэмэгдсэн , 2 устгасан
  1. 3 1
      crc.h
  2. 6 0
      md5.h
  3. 5 0
      md5global.h
  4. 1 1
      md5utils.h

+ 3 - 1
crc.h

@@ -3,6 +3,8 @@
 #ifndef _CRC_H_
 #ifndef _CRC_H_
 #define _CRC_H_
 #define _CRC_H_
 
 
+#include "str.h"
+
 #define CRC16_LEN	4
 #define CRC16_LEN	4
 
 
 extern unsigned long int crc_32_tab[];
 extern unsigned long int crc_32_tab[];
@@ -12,5 +14,5 @@ extern unsigned short int crc_16_tab[];
 unsigned short crcitt_string( char *s, int len );
 unsigned short crcitt_string( char *s, int len );
 void crcitt_string_array( char *dst, str src[], int size );
 void crcitt_string_array( char *dst, str src[], int size );
 
 
-#endif
+#endif /* _CRC_H_ */
 
 

+ 6 - 0
md5.h

@@ -25,6 +25,11 @@ These notices must be retained in any copies of any part of this
 documentation and/or software.
 documentation and/or software.
  */
  */
 
 
+#ifndef MD5_H
+#define MD5_H
+
+#include "md5global.h"
+
 /* MD5 context. */
 /* MD5 context. */
 typedef struct {
 typedef struct {
   UINT4 state[4];                                   /* state (ABCD) */
   UINT4 state[4];                                   /* state (ABCD) */
@@ -37,3 +42,4 @@ void MD5Update PROTO_LIST
   ((MD5_CTX *, unsigned char *, unsigned int));
   ((MD5_CTX *, unsigned char *, unsigned int));
 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
 
 
+#endif /* MD5_H */

+ 5 - 0
md5global.h

@@ -8,6 +8,10 @@
 The following makes PROTOTYPES default to 0 if it has not already
 The following makes PROTOTYPES default to 0 if it has not already
   been defined with C compiler flags.
   been defined with C compiler flags.
  */
  */
+#ifndef MD5GLOBAL_H
+#define MD5GLOBAL_H
+
+
 #ifndef PROTOTYPES
 #ifndef PROTOTYPES
 #define PROTOTYPES 0
 #define PROTOTYPES 0
 #endif
 #endif
@@ -31,3 +35,4 @@ If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
 #define PROTO_LIST(list) ()
 #define PROTO_LIST(list) ()
 #endif
 #endif
 
 
+#endif /* MD5GLOBAL_H */

+ 1 - 1
md5utils.h

@@ -36,4 +36,4 @@
 
 
 void MDStringArray (char *dst, str src[], int size);
 void MDStringArray (char *dst, str src[], int size);
 
 
-#endif
+#endif /* _MD5UTILS_H */