diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2014-05-20 07:03:20 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2014-05-20 07:03:20 +0400 |
commit | 078884e2399d9327f8c6af944b5df5454dd202fb (patch) | |
tree | dd94a5cbdf43fa250c293db822826ed7d1837fd3 | |
parent | f6416b94a538bbcb834a9b153d1304938bc224a0 (diff) |
warning fix: typedef of incomplete struct type forces redefinition of the typedef later, which is illegal except in C++ 11
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 1523362525e..0fa123291b7 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); |