2012-12-18 01:14:30 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef _CPR_STDLIB_H_
|
|
|
|
#define _CPR_STDLIB_H_
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef SIP_OS_WINDOWS
|
|
|
|
#include <crtdbg.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#endif
|
|
|
|
|
2012-12-18 02:28:13 +00:00
|
|
|
//#include "mozilla/mozalloc.h"
|
2012-12-18 01:14:30 +00:00
|
|
|
|
2012-12-18 02:28:13 +00:00
|
|
|
#define cpr_malloc(a) malloc(a)
|
|
|
|
#define cpr_calloc(a, b) calloc(a, b)
|
|
|
|
#define cpr_realloc(a, b) realloc(a, b)
|
|
|
|
#define cpr_free(a) free(a)
|
2012-12-18 01:14:30 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|