Browse Source

use config.h correctly wherever needed

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1378 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 7 years ago
parent
commit
179c9cd834
3 changed files with 8 additions and 11 deletions
  1. +1
    -0
      xcache/xc_allocator.c
  2. +0
    -3
      xcache/xc_malloc.c
  3. +7
    -8
      xcache/xc_shm.c

+ 1
- 0
xcache/xc_allocator.c View File

@ -1,3 +1,4 @@
#include "xcache.h"
#include "xc_allocator.h"
#include <string.h>
#include <stdio.h>


+ 0
- 3
xcache/xc_malloc.c View File

@ -4,9 +4,6 @@
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "xc_shm.h"
#include "xc_allocator.h"
#ifndef TEST


+ 7
- 8
xcache/xc_shm.c View File

@ -1,19 +1,18 @@
#ifdef TEST
#include <limits.h>
#include <stdio.h>
# ifdef HAVE_CONFIG_H
# include <config.h>
# endif
# include <limits.h>
# include <stdio.h>
#else
#include <php.h>
# include "xcache.h"
#endif
#include "xc_shm.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "xc_shm.h"
struct _xc_shm_scheme_t {
const char *name;
const xc_shm_handlers_t *handlers;


Loading…
Cancel
Save