mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 07:18:04 +02:00
Minor changes to header file inclusion recommended by Oleg Smolsky for better portability to MSVC.
This commit is contained in:
parent
4a3a6e8719
commit
62212867d4
7 changed files with 19 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "cairoint.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "cairoint.h"
|
||||
#include "cairo-win32-private.h"
|
||||
|
||||
#ifndef SPI_GETFONTSMOOTHINGTYPE
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
*/
|
||||
|
||||
#ifndef _CAIRO_WIN32_H_
|
||||
#define _CAIRO_WIN32_H_
|
||||
|
||||
#include <cairo.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue