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