[Bf-blender-cvs] [078884e] soc-2013-viewport_fx: warning fix: typedef of incomplete struct type forces redefinition of the typedef later, which is illegal except in C++ 11

Jason Wilkins noreply at git.blender.org
Thu May 29 05:21:03 CEST 2014


Commit: 078884e2399d9327f8c6af944b5df5454dd202fb
Author: Jason Wilkins
Date:   Mon May 19 22:03:20 2014 -0500
https://developer.blender.org/rB078884e2399d9327f8c6af944b5df5454dd202fb

warning fix: typedef of incomplete struct type forces redefinition of the typedef later, which is illegal except in C++ 11

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

M	source/blender/editors/include/UI_interface.h

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

diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 1523362..0fa1232 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -652,15 +652,13 @@ void uiButSetFocusOnEnter(struct wmWindow *win, uiBut *but);
  * Call begin once, then multiple times do_name with all possibilities,
  * and finally end to finish and get the completed name. */
 
-typedef struct AutoComplete AutoComplete;
-
 #define AUTOCOMPLETE_NO_MATCH 0
 #define AUTOCOMPLETE_FULL_MATCH 1
 #define AUTOCOMPLETE_PARTIAL_MATCH 2
 
 struct AutoComplete *autocomplete_begin(const char *startname, size_t maxlen);
-void autocomplete_do_name(AutoComplete *autocpl, const char *name);
-int autocomplete_end(AutoComplete *autocpl, char *autoname);
+void autocomplete_do_name(struct AutoComplete *autocpl, const char *name);
+int autocomplete_end(struct AutoComplete *autocpl, char *autoname);




More information about the Bf-blender-cvs mailing list