- Enable C4115 (struct defined in function parameter list) and fix its occurrences
svn path=/trunk/; revision=61030
# - C4700: uninitialized variable usage
add_compile_flags("/we4022 /we4047 /we4098 /we4113 /we4129 /we4229 /we4700")
+# Enable warnings above the default level, but don't treat them as errors:
+# - C4115: named type definition in parentheses
+add_compile_flags("/w14115")
+
# Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
#define typeof(X_) __typeof_ ## X_
-struct ITextHost;
-struct _RECT;
-struct _CHARFORMATW;
-struct _PARAFORMAT;
-struct _POINT;
-struct _SIZEL;
struct HDC__;
+struct ITextHost;
+struct tagRECT;
+struct _RECTL;
+struct _charformatw;
+struct _paraformat;
+struct tagPOINT;
+enum _TXTBACKSTYLE;
+struct tagSIZE;
+struct ITextServices;
+struct tagDVTARGETDEVICE;
+struct IDropTarget;
#define WINAPI __stdcall
#define HRESULT int
#define __typeof_wchar unsigned short
#endif
+struct jpeg_decompress_struct;
+struct jpeg_compress_struct;
+struct png_struct_def;
+struct png_color_struct;
+struct png_color_16_struct;
+
typedef struct jpeg_error_mgr * (__cdecl typeof(jpeg_std_error))(struct jpeg_error_mgr *);
typedef void (__cdecl typeof(jpeg_CreateDecompress))(struct jpeg_decompress_struct *, int, __typeof_size);
typedef int (__cdecl typeof(jpeg_read_header))(struct jpeg_decompress_struct *, int);