Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2014-05-20 07:03:20 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2014-05-20 07:03:20 +0400
commit078884e2399d9327f8c6af944b5df5454dd202fb (patch)
treedd94a5cbdf43fa250c293db822826ed7d1837fd3
parentf6416b94a538bbcb834a9b153d1304938bc224a0 (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.h6
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);