Skip to content

Commit

Permalink
2007-06-21 Sebastien Pouliot <sebastien@ximian.com>
Browse files Browse the repository at this point in the history
	* codecs.h, GdiPlusFlat.h, image.h, dstream.c: Fix #81845 to allow 
	using with C++ compilers and -Werror. Patch by Yves Bastide.


svn path=/trunk/libgdiplus/; revision=80461
  • Loading branch information
Sebastien Pouliot committed Jun 21, 2007
1 parent c62ea3f commit 98ffc90
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/ChangeLog
@@ -1,3 +1,8 @@
2007-06-21 Sebastien Pouliot <sebastien@ximian.com>

* codecs.h, GdiPlusFlat.h, image.h, dstream.c: Fix #81845 to allow
using with C++ compilers and -Werror. Patch by Yves Bastide.

2007-06-21 Sebastien Pouliot <sebastien@ximian.com> 2007-06-21 Sebastien Pouliot <sebastien@ximian.com>


* graphics.h: Add missing GdipGetClip prototype. Fix #81844. Patch by * graphics.h: Add missing GdipGetClip prototype. Fix #81844. Patch by
Expand Down
16 changes: 16 additions & 0 deletions src/GdiPlusFlat.h
Expand Up @@ -28,6 +28,11 @@
#ifndef _FLATAPI_H #ifndef _FLATAPI_H
#define _FLATAPI_H #define _FLATAPI_H


#ifdef __cplusplus
extern "C"
{
#endif

/* /*
* If you ever need a workaround specific to libgdiplus then use the following define * If you ever need a workaround specific to libgdiplus then use the following define
*/ */
Expand Down Expand Up @@ -74,11 +79,17 @@ typedef struct {
UINT Width; UINT Width;
UINT Height; UINT Height;
INT Stride; INT Stride;
/* C++ compilers should need '::' (and GCC does) */
#ifdef __cplusplus
::PixelFormat PixelFormat;
#else
PixelFormat PixelFormat; PixelFormat PixelFormat;
#endif
VOID *Scan0; VOID *Scan0;
UINT *Reserved; UINT *Reserved;
} BitmapData; } BitmapData;


#include "general.h"
#include "adjustablearrowcap.h" #include "adjustablearrowcap.h"
#include "bitmap.h" #include "bitmap.h"
#include "brush.h" #include "brush.h"
Expand All @@ -89,6 +100,7 @@ typedef struct {
#include "graphics.h" #include "graphics.h"
#include "graphics-path.h" #include "graphics-path.h"
#include "hatchbrush.h" #include "hatchbrush.h"
#include "image.h"
#include "imageattributes.h" #include "imageattributes.h"
#include "pen.h" #include "pen.h"
#include "matrix.h" #include "matrix.h"
Expand All @@ -97,4 +109,8 @@ typedef struct {
#include "stringformat.h" #include "stringformat.h"
#include "text.h" #include "text.h"


#ifdef __cplusplus
}
#endif

#endif #endif
2 changes: 1 addition & 1 deletion src/codecs.h
Expand Up @@ -33,8 +33,8 @@
#ifndef __CODECS_H__ #ifndef __CODECS_H__
#define __CODECS_H__ #define __CODECS_H__


#include "gdipenums.h"
#include "win32structs.h" #include "win32structs.h"
#include "gdipenums.h"


typedef struct { typedef struct {
GUID Guid; GUID Guid;
Expand Down
2 changes: 1 addition & 1 deletion src/dstream.c
Expand Up @@ -18,8 +18,8 @@
* *
*/ */


#include "dstream.h"
#include "gdiplus-private.h" #include "gdiplus-private.h"
#include "dstream.h"


struct _dstream_pvt { struct _dstream_pvt {
GetBytesDelegate read; GetBytesDelegate read;
Expand Down
1 change: 0 additions & 1 deletion src/image.h
Expand Up @@ -31,7 +31,6 @@
#ifndef __IMAGE_H__ #ifndef __IMAGE_H__
#define __IMAGE_H__ #define __IMAGE_H__


#include "gdiplus-private.h"
#include "codecs.h" #include "codecs.h"


/* /*
Expand Down

0 comments on commit 98ffc90

Please sign in to comment.