types.h: centralize use of stddef.h

for size_t / NULL

Change-Id: If1331d3cf44296ed0ba9e838eae2f5b1bcaeb61b
This commit is contained in:
James Zern 2012-04-12 17:05:34 -07:00
parent 1c92bd37f3
commit fbd82b5a39
9 changed files with 3 additions and 11 deletions

View File

@ -16,8 +16,6 @@
extern "C" {
#endif
#include <stddef.h> // for size_t
#include "../webp/decode_vp8.h"
#include "../utils/rescaler.h"

View File

@ -9,8 +9,6 @@
//
// Author: Christian Duvivier (cduvivier@google.com)
#include <stddef.h> // for NULL
#include "./dsp.h"
#if defined(__cplusplus) || defined(c_plusplus)

View File

@ -9,6 +9,7 @@
//
// Author: Skal (pascal.massimino@gmail.com)
#include <stdlib.h> // for abs()
#include "./dsp.h"
#include "../enc/vp8enci.h"

View File

@ -14,7 +14,6 @@
#define WEBP_UTILS_BIT_READER_H_
#include <assert.h>
#include <stddef.h> // For size_t
#ifdef _MSC_VER
#include <stdlib.h> // _byteswap_ulong
#endif

View File

@ -11,7 +11,6 @@
#include "./filters.h"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>

View File

@ -13,7 +13,6 @@
#define WEBP_UTILS_HUFFMAN_H_
#include <assert.h>
#include <stddef.h>
#include "../webp/types.h"
#if defined(__cplusplus) || defined(c_plusplus)

View File

@ -12,8 +12,6 @@
#ifndef WEBP_WEBP_DECODE_VP8_H_
#define WEBP_WEBP_DECODE_VP8_H_
#include <stddef.h> // for size_t
#include "./decode.h"
#if defined(__cplusplus) || defined(c_plusplus)

View File

@ -12,8 +12,6 @@
#ifndef WEBP_WEBP_ENCODE_H_
#define WEBP_WEBP_ENCODE_H_
#include <stdlib.h>
#include "./types.h"
#if defined(__cplusplus) || defined(c_plusplus)

View File

@ -12,6 +12,8 @@
#ifndef WEBP_WEBP_TYPES_H_
#define WEBP_WEBP_TYPES_H_
#include <stddef.h> // for size_t
#ifndef _MSC_VER
#include <inttypes.h>
#ifdef __STRICT_ANSI__