Minor changes to header file inclusion recommended by Oleg Smolsky for better portability to MSVC.

This commit is contained in:
Carl Worth 2005-04-07 12:56:43 +00:00
parent 4a3a6e8719
commit 62212867d4
7 changed files with 19 additions and 4 deletions

View file

@ -2,6 +2,16 @@
* src/cairo-win32-font.c: Fix various compilation errors.
2005-04-07 Carl Worth <cworth@cworth.org>
* src/cairo-gstate.c:
* src/cairo-png.c:
* src/cairo-win32-font.c:
* src/cairo-win32-surface.c:
* src/cairo-win32.h:
* src/cairoint.h: Minor changes to header file inclusion
recommended by Oleg Smolsky for better portability to MSVC.
2005-04-07 Carl Worth <cworth@cworth.org>
* src/cairo-png.c (PNG_SIG_SIZE): Use a preprocessor macro to get

View file

@ -35,7 +35,6 @@
*/
#include <stdlib.h>
#include <math.h>
#include "cairoint.h"

View file

@ -36,8 +36,8 @@
*/
#include <png.h>
#include "cairo-png.h"
#include "cairoint.h"
#include "cairo-png.h"
static void
@ -339,3 +339,4 @@ cairo_image_surface_create_for_png (FILE *file, int *width, int *height)
return NULL;
}
#undef PNG_SIG_SIZE

View file

@ -34,7 +34,7 @@
#include <string.h>
#include <stdio.h>
#include "cairoint.h"
#include "cairo-win32-private.h"
#ifndef SPI_GETFONTSMOOTHINGTYPE

View file

@ -34,7 +34,7 @@
*/
#include <stdio.h>
#include "cairoint.h"
#include "cairo-win32-private.h"
static const cairo_surface_backend_t cairo_win32_surface_backend;

View file

@ -34,6 +34,7 @@
*/
#ifndef _CAIRO_WIN32_H_
#define _CAIRO_WIN32_H_
#include <cairo.h>

View file

@ -52,6 +52,10 @@
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <limits.h>
#include <stdio.h>