/usr/include/mp4v2/platform.h is in libmp4v2-dev 1.9.1+svn479~dfsg0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | #ifndef MP4V2_PLATFORM_H
#define MP4V2_PLATFORM_H
/*****************************************************************************/
#include <stddef.h>
#include <stdio.h>
#include <stdarg.h>
// Thanks, MSFT, for making C99 a total PITA. Declare this not to define any stdint stuff; this is useful
// if you're going to be using mp4v2 on windows with some other library that defines its own stdint.
// TODO msft has finally re-included stdint in vs2010, so maybe at some point in the future this won't be needed.
#ifndef MP4V2_NO_STDINT_DEFS
#if defined( _WIN32 ) && !defined( __MINGW32__ )
typedef char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
#else
#include <stdint.h>
#endif
#endif
#if defined( _WIN32 ) || defined( __MINGW32__ )
# if defined( MP4V2_EXPORTS )
# define MP4V2_EXPORT __declspec(dllexport)
# elif defined( MP4V2_USE_DLL_IMPORT ) || !defined( MP4V2_USE_STATIC_LIB )
# define MP4V2_EXPORT __declspec(dllimport)
# else
# define MP4V2_EXPORT
# endif
#else
# define MP4V2_EXPORT __attribute__((visibility("default")))
#endif
#if defined( __GNUC__ )
# define MP4V2_DEPRECATED __attribute__((deprecated))
#else
# define MP4V2_DEPRECATED
#endif
/******************************************************************************
*
* TODO-KB: cleanup -- absolutely no need for a C-API to fuss with reserved
* C++ keywords. This will involve changing the public interface and current
* plan of action:
*
* typdef enum {
* mp4_false,
* mp4_true,
* } mp4_bool_t;
*
* followed by updating all public signatures and implementation.
*/
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#if !defined( __cplusplus )
#ifndef bool
#if SIZEOF_BOOL == 8
typedef uint64_t bool;
#else
#if SIZEOF_BOOL == 4
typedef uint32_t bool;
#else
#if SIZEOF_BOOL == 2
typedef uint16_t bool;
#else
typedef unsigned char bool;
#endif
#endif
#endif
#ifndef false
#define false FALSE
#endif
#ifndef true
#define true TRUE
#endif
#endif
#endif
/*****************************************************************************/
#endif /* MP4V2_PLATFORM_H */
|