updated .c files to include:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Just need to finish cpp files now :)

Kent
--
mein@cs.umn.edu
This commit is contained in:
2002-11-25 12:02:15 +00:00
parent b9a19f1ea7
commit d0e346d544
251 changed files with 1028 additions and 79 deletions

View File

@@ -44,6 +44,10 @@
#include "IMB_divers.h"
#include "IMB_allocimbuf.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
static unsigned int dfltcmap[16] = {
0x00000000, 0xffffffff, 0x777777ff, 0xccccccff,
0xcc3344ff, 0xdd8844ff, 0xccdd44ff, 0x888833ff,

View File

@@ -43,6 +43,10 @@
#include "IMB_bitplanes.h"
#include "IMB_amiga.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* actually hard coded endianness */
#define GET_BIG_LONG(x) (((uchar *) (x))[0] << 24 | ((uchar *) (x))[1] << 16 | ((uchar *) (x))[2] << 8 | ((uchar *) (x))[3])
#define GET_LITTLE_LONG(x) (((uchar *) (x))[3] << 24 | ((uchar *) (x))[2] << 16 | ((uchar *) (x))[1] << 8 | ((uchar *) (x))[0])

View File

@@ -41,6 +41,10 @@
#include <commdlg.h>
#include <vfw.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#undef AVIIF_KEYFRAME // redefined in AVI_avi.h
#undef AVIIF_LIST // redefined in AVI_avi.h

View File

@@ -40,9 +40,12 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* werking:
1 - zoek een overgang in een kolom

View File

@@ -39,10 +39,12 @@
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_bitplanes.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
unsigned int **imb_copyplanelist(struct ImBuf *ibuf)
{

View File

@@ -40,11 +40,13 @@
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_cmap.h"
#include "IMB_bmp.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// some code copied from article on microsoft.com, copied
// here for enhanced BMP support in the future

View File

@@ -42,6 +42,10 @@
#include "IMB_cmap.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
static short *lastcube = 0;
static uchar *lastcoltab = 0;
static short lastmaxcol;

View File

@@ -37,6 +37,10 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/************************************************************************/
/* COLORSPACE */
/************************************************************************/

View File

@@ -35,6 +35,10 @@
#include "imbuf.h"
#include "matrix.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/*
static short quadbase[31] = {
150,133,117,102,

View File

@@ -39,6 +39,10 @@
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void IMB_dit0(struct ImBuf * ibuf, short ofs, short bits)
{
int x, y, and, add, pix;

View File

@@ -38,9 +38,11 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_divers.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void imb_checkncols(struct ImBuf *ibuf)
/* struct ImBuf *ibuf; */

View File

@@ -38,9 +38,12 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_filter.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/************************************************************************/
/* FILTERS */

View File

@@ -38,11 +38,14 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_cmap.h"
#include "IMB_hamx.h"
#include "IMB_ham.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
extern short alpha_col0;
#define HAMB 0x0100

View File

@@ -33,6 +33,11 @@
*/
#include "BLI_blenlib.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#include <io.h>

View File

@@ -33,13 +33,15 @@
*/
#include "BLI_blenlib.h"
#include "imbuf.h"
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_iff.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
unsigned short imb_start_iff(struct ImBuf *ibuf, int file)
{
unsigned int *point, size, *buf;

View File

@@ -42,6 +42,10 @@
#include "IMB_imbuf.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Only this one is used liberally here, and in imbuf */
void IMB_convert_rgba_to_abgr(int size, unsigned int *rect)
{

View File

@@ -34,15 +34,16 @@
#include <string.h>
#include "BLI_blenlib.h"
#include "imbuf.h"
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_iris.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
typedef struct {
unsigned short imagic; /* stuff saved on disk . . */

View File

@@ -41,11 +41,13 @@
#include "imbuf_patch.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_jpeg.h"
#include "jpeglib.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* the types are from the jpeg lib */
static void jpeg_error (j_common_ptr cinfo);
static void init_source(j_decompress_ptr cinfo);

View File

@@ -32,6 +32,10 @@
#include "png.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef _WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -33,6 +33,10 @@
#include "png.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -47,6 +47,10 @@
#include "IMB_jpeg.h"
#include "IMB_bmp.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* actually hard coded endianness */
#define GET_BIG_LONG(x) (((uchar *) (x))[0] << 24 | ((uchar *) (x))[1] << 16 | ((uchar *) (x))[2] << 8 | ((uchar *) (x))[3])
#define GET_LITTLE_LONG(x) (((uchar *) (x))[3] << 24 | ((uchar *) (x))[2] << 16 | ((uchar *) (x))[1] << 8 | ((uchar *) (x))[0])

View File

@@ -32,6 +32,10 @@
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -32,6 +32,10 @@
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -32,6 +32,10 @@
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -30,6 +30,10 @@
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#include <io.h>

View File

@@ -42,6 +42,10 @@
#include "IMB_targa.h"
#include "IMB_png.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* from misc_util: flip the bytes from x */
#define GS(x) (((unsigned char *)(x))[0] << 8 | ((unsigned char *)(x))[1])

View File

@@ -53,6 +53,10 @@
#include "IMB_bitplanes.h"
#include "IMB_divers.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
short (*IMB_fp_png_encode)(struct ImBuf *ibuf, int file, int flags) = 0;