From 08b96ebc1c9bdb186687ce730f53a5194dad0e0a Mon Sep 17 00:00:00 2001 From: Eduardo de Barros Lima Date: Thu, 24 Jan 2013 21:35:06 +0000 Subject: [PATCH] Move typedef enum declarations after the enum to make g++ happy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When compiling a C++ program that includes Ecore_Wayland: Ecore_Wayland.h:56:14: error: use of enum ‘_Ecore_Wl_Window_Type’ without previous declaration Ecore_Wayland.h:56:56: error: invalid type in declaration before ‘;’ token Ecore_Wayland.h:57:14: error: use of enum ‘_Ecore_Wl_Window_Buffer_Type’ without previous declaration Ecore_Wayland.h:57:70: error: invalid type in declaration before ‘;’ token This patch fixes ticket #2217. SVN revision: 83310 --- src/lib/ecore_wayland/Ecore_Wayland.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h index 9d218cd763..6eda0d136b 100644 --- a/src/lib/ecore_wayland/Ecore_Wayland.h +++ b/src/lib/ecore_wayland/Ecore_Wayland.h @@ -26,9 +26,6 @@ # define EAPI # endif -typedef enum _Ecore_Wl_Window_Type Ecore_Wl_Window_Type; -typedef enum _Ecore_Wl_Window_Buffer_Type Ecore_Wl_Window_Buffer_Type; - typedef struct _Ecore_Wl_Display Ecore_Wl_Display; typedef struct _Ecore_Wl_Output Ecore_Wl_Output; typedef struct _Ecore_Wl_Input Ecore_Wl_Input; @@ -70,6 +67,9 @@ enum _Ecore_Wl_Window_Buffer_Type ECORE_WL_WINDOW_BUFFER_TYPE_SHM }; +typedef enum _Ecore_Wl_Window_Type Ecore_Wl_Window_Type; +typedef enum _Ecore_Wl_Window_Buffer_Type Ecore_Wl_Window_Buffer_Type; + struct _Ecore_Wl_Display { struct