[Bf-blender-cvs] [a521ad75684] master: Cleanup: allow BLI_Buffer to be used without it's header

Campbell Barton noreply at git.blender.org
Thu May 23 08:37:25 CEST 2019


Commit: a521ad756848114b4e1be90f46b7c6799fb562f7
Author: Campbell Barton
Date:   Thu May 23 16:32:58 2019 +1000
Branches: master
https://developer.blender.org/rBa521ad756848114b4e1be90f46b7c6799fb562f7

Cleanup: allow BLI_Buffer to be used without it's header

Without this any functions declared that take BLI_Buffer
also needed to include the header.

===================================================================

M	source/blender/blenlib/BLI_buffer.h

===================================================================

diff --git a/source/blender/blenlib/BLI_buffer.h b/source/blender/blenlib/BLI_buffer.h
index 9f3644ed45a..6fe1e9bb693 100644
--- a/source/blender/blenlib/BLI_buffer.h
+++ b/source/blender/blenlib/BLI_buffer.h
@@ -21,7 +21,7 @@
  * \ingroup bli
  */
 
-typedef struct {
+typedef struct BLI_Buffer {
   void *data;
   const size_t elem_size;
   size_t count, alloc_count;



More information about the Bf-blender-cvs mailing list