Move the typedef for "u32" from utils.h to md5.h, since it is only used there.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 21 Aug 2018 09:53:16 +0000 (11:53 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 21 Aug 2018 09:53:16 +0000 (11:53 +0200)
src/common/md5.h
src/common/utils.h

index 90cc63a..bf82fd7 100644 (file)
 
 #include "utils.h"
 
+#ifndef HAVE_U32_TYPEDEF
+  #undef u32       /* maybe there is a macro with this name */
+  typedef guint32 u32;
+  #define HAVE_U32_TYPEDEF
+#endif
+
 typedef struct {  /* Hmm, should be private */
     u32 A,B,C,D;
     u32  nblocks;
index a1f356e..c09032f 100644 (file)
@@ -68,12 +68,6 @@ typedef gint64 goffset;
 #define G_MAXOFFSET    G_MAXINT64
 #endif
 
-#ifndef HAVE_U32_TYPEDEF
-  #undef u32       /* maybe there is a macro with this name */
-  typedef guint32 u32;
-  #define HAVE_U32_TYPEDEF
-#endif
-
 #ifndef BIG_ENDIAN_HOST
   #if (G_BYTE_ORDER == G_BIG_ENDIAN)
     #define BIG_ENDIAN_HOST 1