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

@@ -33,11 +33,13 @@
#include "BLI_blenlib.h"
#include "DNA_material_types.h"
#include "BKE_bad_level_calls.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int winqueue_break= 0;
/* readfile.c */

View File

@@ -66,6 +66,10 @@
#include "BKE_constraint.h"
#include "DNA_constraint_types.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Local function prototypes */
static
void

View File

@@ -58,6 +58,10 @@
#include "BKE_bad_level_calls.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
ListBase duplilist= {0, 0};
void free_path(Path *path)

View File

@@ -66,6 +66,10 @@
#include "IK_solver.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Function prototypes */
static void apply_pose_bonechildren (Bone* bone, bPose* pose, int doit);

View File

@@ -34,6 +34,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#include <unistd.h> // for read close
#include <sys/param.h> // for MAXPATHLEN

View File

@@ -61,6 +61,10 @@
#include "BKE_bmfont.h"
#include "BKE_bmfont_types.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void printfGlyph(bmGlyph * glyph)
{
printf("unicode: %d '%c'\n", glyph->unicode, glyph->unicode);

View File

@@ -57,6 +57,10 @@
#include "blendef.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
@@ -729,4 +733,4 @@ void free_constraint_channels (ListBase *chanbase)
}
BLI_freelistN(chanbase);
}
}

View File

@@ -40,6 +40,10 @@
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -36,15 +36,14 @@
*/
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "DNA_object_types.h"
#include "BKE_deform.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void color_temperature (float input, unsigned char *r, unsigned char *g, unsigned char *b)
{

View File

@@ -66,6 +66,9 @@
#include "BKE_displist.h"
#include "BKE_lattice.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
Effect *add_effect(int type)
{

View File

@@ -77,6 +77,11 @@
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#include <unistd.h>
#else

View File

@@ -39,6 +39,11 @@
#include <string.h>
#include <math.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -53,6 +53,10 @@
#include "BKE_object.h"
#include "BKE_ipo.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void free_object_key(ObjectKey *ok)
{
if(ok->ipo) ok->ipo->id.us--;

View File

@@ -56,6 +56,10 @@
#include "BKE_object.h"
#include "BKE_ika.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Let's go! */
#define TOLER 0.000076
#define CLAMP(a, b, c) if((a)<(b)) (a)=(b); else if((a)>(c)) (a)=(c)

View File

@@ -36,6 +36,11 @@
#include <math.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -61,6 +61,9 @@
#include "BKE_ipo.h"
#include "BKE_lattice.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#define KEY_BPOINT 1
#define KEY_BEZTRIPLE 2

View File

@@ -63,6 +63,10 @@
#include "BKE_object.h"
#include "BKE_ika.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
Lattice *editLatt=0, *deformLatt=0;
float *latticedata=0, latmat[4][4];

View File

@@ -41,6 +41,10 @@
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -59,6 +59,10 @@
#include "BPY_extern.h"
#include "BKE_material.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void free_material(Material *ma)
{
int a;

View File

@@ -69,6 +69,10 @@
#include "BKE_displist.h"
#include "BKE_mball.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* Functions */

View File

@@ -35,6 +35,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -34,17 +34,18 @@
#include "BKE_nla.h"
#include "BKE_blender.h"
#include "BLI_blenlib.h"
#include "DNA_space_types.h"
#include "DNA_nla_types.h"
#include "DNA_action_types.h"
#include "DNA_ID.h"
#include "DNA_ipo_types.h"
#include "MEM_guardedalloc.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void copy_actionstrip (bActionStrip **dst, bActionStrip **src){
bActionStrip *dstrip;
bActionStrip *sstrip = *src;

View File

@@ -33,11 +33,14 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#include <string.h>
#include <math.h>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -35,6 +35,11 @@
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#include <unistd.h>
#else

View File

@@ -37,6 +37,10 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -37,6 +37,10 @@
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef WIN32
#include <unistd.h>
#else

View File

@@ -37,11 +37,13 @@
#include <math.h>
#include "DNA_screen_types.h"
#include "BKE_bad_level_calls.h"
#include "BLI_blenlib.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* don't free screen itself */
void free_screen(bScreen *sc)
{

View File

@@ -20,6 +20,10 @@
#include "BKE_sound.h"
#include "BKE_packedFile.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
ListBase _samples = {0,0}, *samples = &_samples;
void sound_free_sound(bSound *sound)

View File

@@ -35,6 +35,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -48,6 +48,10 @@
#include "BPY_extern.h" // Blender Python library
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/***************/ /*
How Texts should work

View File

@@ -35,6 +35,10 @@
#include <string.h>
#include <math.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include "BLI_winstuff.h"
#endif

View File

@@ -58,6 +58,9 @@
#include "BPY_extern.h"
#include "BKE_main.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void free_world(World *wrld)
{

View File

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