tpl.h | tpl.h | |||
---|---|---|---|---|
/* | /* | |||
Copyright (c) 2005-2009, Troy D. Hanson http://tpl.sourceforge.net | Copyright (c) 2005-2010, Troy D. Hanson http://tpl.sourceforge.net | |||
All rights reserved. | All rights reserved. | |||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | |||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | |||
* Redistributions of source code must retain the above copyright | * Redistributions of source code must retain the above copyright | |||
notice, this list of conditions and the following disclaimer. | notice, this list of conditions and the following disclaimer. | |||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | |||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |||
skipping to change at line 29 | skipping to change at line 29 | |||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
*/ | */ | |||
#ifndef TPL_H | #ifndef TPL_H | |||
#define TPL_H | #define TPL_H | |||
#include <stddef.h> /* size_t */ | #include <stddef.h> /* size_t */ | |||
#ifdef __INTEL_COMPILER | ||||
#include <tbb/tbbmalloc_proxy.h> | ||||
#endif /* Intel Compiler efficient memcpy etc */ | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | |||
typedef unsigned int uint32_t; | typedef unsigned int uint32_t; | |||
#else | #else | |||
#include <inttypes.h> /* uint32_t */ | #include <inttypes.h> /* uint32_t */ | |||
#endif | #endif | |||
#if defined __cplusplus | #if defined __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#ifdef _WIN32 | ||||
#ifdef TPL_EXPORTS | ||||
#define TPL_API __declspec(dllexport) | ||||
#else /* */ | ||||
#ifdef TPL_NOLIB | ||||
#define TPL_API | #define TPL_API | |||
#else | ||||
#define TPL_API __declspec(dllimport) | ||||
#endif /* TPL_NOLIB */ | ||||
#endif /* TPL_EXPORTS*/ | ||||
#else | ||||
#define TPL_API | ||||
#endif | ||||
/* bit flags (external) */ | /* bit flags (external) */ | |||
#define TPL_FILE (1 << 0) | #define TPL_FILE (1 << 0) | |||
#define TPL_MEM (1 << 1) | #define TPL_MEM (1 << 1) | |||
#define TPL_PREALLOCD (1 << 2) | #define TPL_PREALLOCD (1 << 2) | |||
#define TPL_EXCESS_OK (1 << 3) | #define TPL_EXCESS_OK (1 << 3) | |||
#define TPL_FD (1 << 4) | #define TPL_FD (1 << 4) | |||
#define TPL_UFREE (1 << 5) | #define TPL_UFREE (1 << 5) | |||
#define TPL_DATAPEEK (1 << 6) | #define TPL_DATAPEEK (1 << 6) | |||
#define TPL_FXLENS (1 << 7) | #define TPL_FXLENS (1 << 7) | |||
End of changes. 4 change blocks. | ||||
1 lines changed or deleted | 17 lines changed or added | |||