[Bf-blender-cvs] [14795ba] master: Cleanup: headers
Campbell Barton
noreply at git.blender.org
Fri Nov 14 11:50:11 CET 2014
Commit: 14795baf2142024905c6936a82eaa2321dae8cb8
Author: Campbell Barton
Date: Fri Nov 14 11:49:45 2014 +0100
Branches: master
https://developer.blender.org/rB14795baf2142024905c6936a82eaa2321dae8cb8
Cleanup: headers
===================================================================
M source/blender/blenlib/BLI_hash_md5.h
M source/blender/blenlib/BLI_hash_mm2a.h
M source/blender/blenlib/intern/hash_md5.c
M source/blender/editors/interface/interface_handlers.c
M source/blender/imbuf/intern/thumbs.c
===================================================================
diff --git a/source/blender/blenlib/BLI_hash_md5.h b/source/blender/blenlib/BLI_hash_md5.h
index cab3671..81a0eb9 100644
--- a/source/blender/blenlib/BLI_hash_md5.h
+++ b/source/blender/blenlib/BLI_hash_md5.h
@@ -18,16 +18,13 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#ifndef __BLI_MD5_H__
-#define __BLI_MD5_H__
+#ifndef __BLI_HASH_MD5_H__
+#define __BLI_HASH_MD5_H__
/** \file BLI_hash_md5.h
* \ingroup bli
*/
-#include <stdio.h>
-#include <stdlib.h>
-
/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
* result is always in little endian byte order, so that a byte-wise
* output yields to the wanted ASCII representation of the message
@@ -43,4 +40,4 @@ int md5_stream(FILE *stream, void *resblock);
char *md5_to_hexdigest(void *resblock, char r_hex_digest[33]);
-#endif /* __BLI_MD5_H__ */
+#endif /* __BLI_HASH_MD5_H__ */
diff --git a/source/blender/blenlib/BLI_hash_mm2a.h b/source/blender/blenlib/BLI_hash_mm2a.h
index 503eb5e..007dec4 100644
--- a/source/blender/blenlib/BLI_hash_mm2a.h
+++ b/source/blender/blenlib/BLI_hash_mm2a.h
@@ -18,8 +18,8 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#ifndef __BLI_MM2A_H__
-#define __BLI_MM2A_H__
+#ifndef __BLI_HASH_MM2A_H__
+#define __BLI_HASH_MM2A_H__
/** \file BLI_hash_mm2a.h
* \ingroup bli
@@ -42,4 +42,4 @@ void BLI_hash_mm2a_add_int(BLI_HashMurmur2A *mm2, int data);
uint32_t BLI_hash_mm2a_end(BLI_HashMurmur2A *mm2);
-#endif /* __BLI_MM2A_H__ */
+#endif /* __BLI_HASH_MM2A_H__ */
diff --git a/source/blender/blenlib/intern/hash_md5.c b/source/blender/blenlib/intern/hash_md5.c
index 98a5cc5..4301978 100644
--- a/source/blender/blenlib/intern/hash_md5.c
+++ b/source/blender/blenlib/intern/hash_md5.c
@@ -29,13 +29,13 @@
* according to the definition of MD5 in RFC 1321 from April 1992.
*/
-#include "BLI_hash_md5.h" /* own include */
-
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
+#include "BLI_hash_md5.h" /* own include */
+
#if defined HAVE_LIMITS_H || defined _LIBC
# include <limits.h>
#endif
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index bfd702e..90df2d7 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -8031,7 +8031,6 @@ float ui_block_calc_pie_segment(uiBlock *block, const float event_xy[2])
len = normalize_v2_v2(block->pie_data.pie_dir, seg2);
- /* ten pixels for now, a bit arbitrary */
if (len < U.pie_menu_threshold * U.pixelsize)
block->pie_data.flags |= UI_PIE_INVALID_DIR;
else
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index 5399e54..285f846 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -30,6 +30,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include "BLI_utildefines.h"
#include "BLI_string.h"
More information about the Bf-blender-cvs
mailing list