fixed #include paths to use local copies of png/gdk_imlib/zlib headers
fixed compiler warning in time.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bdc6fff9ea
commit
1f0299c17d
@ -99,7 +99,7 @@ wxTime::wxTime()
|
||||
wxTimeInitialized = TRUE;
|
||||
}
|
||||
sec = wxGetCurrentTime();
|
||||
sec += 2177452800L; /* seconds from 1/1/01 to 1/1/70 */
|
||||
sec += 2177452800UL; /* seconds from 1/1/01 to 1/1/70 */
|
||||
}
|
||||
|
||||
wxTime::wxTime(hourTy h, minuteTy m, secondTy s, bool dst)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#define _GNU_SOURCE
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
/* uncomment this to compile imlib's cahce with pixmap accounting output */
|
||||
/*#define PIXMAP_ACCOUNTING */
|
||||
|
@ -1,6 +1,6 @@
|
||||
#define _GNU_SOURCE
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
void
|
||||
g_PaletteAlloc(int num, int *cols)
|
||||
|
@ -2,7 +2,9 @@
|
||||
#ifndef __GDK_IMLIB_H__
|
||||
#define __GDK_IMLIB_H__
|
||||
|
||||
#include <gdk_imlib_types.h>
|
||||
// we need this funny include path, because the working directory when
|
||||
// including this might actually be ../gdk/ instead of .
|
||||
#include "../gdk_imlib/gdk_imlib_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
ImlibData *id;
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include "../gdk_imlib/config.h"
|
||||
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
/* Split the ID - damages input */
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#define _GNU_SOURCE
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
gint
|
||||
gdk_imlib_get_render_type()
|
||||
|
@ -1,6 +1,6 @@
|
||||
#define _GNU_SOURCE
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
GdkPixmap *
|
||||
gdk_imlib_pixmap_foreign_new(gint width, gint height,
|
||||
|
@ -1,8 +1,8 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include "../gdk_imlib/config.h"
|
||||
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
gint
|
||||
gdk_imlib_save_image(GdkImlibImage * im, char *file, GdkImlibSaveInfo * info)
|
||||
|
@ -1,7 +1,7 @@
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "gdk_imlib.h"
|
||||
#include "gdk_imlib_private.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib_private.h"
|
||||
|
||||
void
|
||||
gcalc_map_tables(GdkImlibImage * im)
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "unistd.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "gdk/gdkprivate.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "unistd.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "gdk/gdkprivate.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#ifdef USE_GDK_IMLIB
|
||||
#include "gdk_imlib.h"
|
||||
#include "../gdk_imlib/gdk_imlib.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -13,7 +13,7 @@
|
||||
* working PNG reader/writer, see pngtest.c, included in this distribution.
|
||||
*/
|
||||
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Check to see if a file is a PNG file using png_sig_cmp(). Returns
|
||||
* non-zero if the image is a PNG, and 0 if it isn't a PNG.
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#define PNG_NO_EXTERN
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Version information for C files. This had better match the version
|
||||
* string defined in png.h.
|
||||
|
@ -106,10 +106,10 @@ extern "C" {
|
||||
*/
|
||||
|
||||
/* include the compression library's header */
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
/* include all user configurable info */
|
||||
#include "pngconf.h"
|
||||
#include "../png/pngconf.h"
|
||||
|
||||
/* This file is arranged in several sections. The first section contains
|
||||
* structure and type definitions. The second section contains the external
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
static void png_default_error PNGARG((png_structp png_ptr,
|
||||
png_const_charp message));
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
png_uint_32
|
||||
png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag)
|
||||
|
@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* The following "hides" PNG_MALLOC and PNG_FREE thus allowing the pngtest
|
||||
application to put a wrapper on top of them. */
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Create a PNG structure for reading, and allocate any memory needed. */
|
||||
png_structp
|
||||
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Read the data from whatever input you are using. The default routine
|
||||
reads from a file pointer. Note that this routine sometimes gets called
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
||||
/* With these routines, we avoid an integer divide, which will be slower on
|
||||
|
@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
#ifndef PNG_READ_BIG_ENDIAN_SUPPORTED
|
||||
/* Grab an unsigned 32-bit integer from a buffer in big endian format. */
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
#if defined(PNG_READ_bKGD_SUPPORTED) || defined(PNG_WRITE_bKGD_SUPPORTED)
|
||||
void
|
||||
|
@ -35,7 +35,7 @@
|
||||
#define PNG_DEBUG 0
|
||||
#endif
|
||||
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
int test_one_file PNGARG((PNG_CONST char *inname, PNG_CONST char *outname));
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
#if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED)
|
||||
/* turn on bgr to rgb mapping */
|
||||
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Write the data to whatever output you are using. The default routine
|
||||
writes to a file pointer. Note that this routine sometimes gets called
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
/* get internal access to png.h */
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Writes all the PNG information. This is the suggested way to use the
|
||||
* library. If you have a new chunk to add, make a function to write it,
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Transform the data according to the users wishes. The order of
|
||||
* transformations is significant.
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
#define PNG_INTERNAL
|
||||
#include "png.h"
|
||||
#include "../png/png.h"
|
||||
|
||||
/* Place a 32-bit number into a buffer in PNG byte order. We work
|
||||
* with unsigned numbers for convenience, although one supported
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
#define BASE 65521L /* largest prime smaller than 65536 */
|
||||
#define NMAX 5552
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
/* ===========================================================================
|
||||
Compresses the source buffer into the destination buffer. The level
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
#define local static
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
#ifdef STDC
|
||||
# include <string.h>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
#ifdef STDC
|
||||
# include <string.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
/* @(#) $Id$ */
|
||||
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
/* ===========================================================================
|
||||
Decompresses the source buffer into the destination buffer. sourceLen is
|
||||
|
@ -31,7 +31,7 @@
|
||||
#ifndef _ZLIB_H
|
||||
#define _ZLIB_H
|
||||
|
||||
#include "zconf.h"
|
||||
#include "../zlib/zconf.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef _Z_UTIL_H
|
||||
#define _Z_UTIL_H
|
||||
|
||||
#include "zlib.h"
|
||||
#include "../zlib/zlib.h"
|
||||
|
||||
#ifdef STDC
|
||||
# include <stddef.h>
|
||||
|
Loading…
Reference in New Issue
Block a user