cadb3627fc
librbcodec users must provide these two files when the library is built. rbcodecconfig.h provides configuration #defines and basic types, and will be included by public librbcodec headers, so it must not conflict with the user's code. rbcodecplatform.h provides various OS functions, and will only be included by source files and private headers. This system is intended to provide maximum flexibility for use on embedded systems, where no operating system headers are included. Unix systems can just copy rbcodecconfig-example.h and rbcodecplatform-unix.h with minimal changes. Change-Id: I350a2274d173da391fd1ca00c4202e9760d91def Reviewed-on: http://gerrit.rockbox.org/143 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
32 lines
753 B
C
32 lines
753 B
C
#ifndef RBCODECCONFIG_H_INCLUDED
|
|
#define RBCODECCONFIG_H_INCLUDED
|
|
|
|
#define HAVE_PITCHSCREEN
|
|
//#define HAVE_SW_VOLUME_CONTROL
|
|
#define HAVE_SW_TONE_CONTROLS
|
|
#define HAVE_ALBUMART
|
|
#define NUM_CORES 1
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* {,u}int{8,16,32,64}_t, {,U}INT{8,16,32,64}_{MIN,MAX}, intptr_t, uintptr_t */
|
|
#include <inttypes.h>
|
|
|
|
/* bool, true, false */
|
|
#include <stdbool.h>
|
|
|
|
/* NULL, offsetof, size_t */
|
|
#include <stddef.h>
|
|
|
|
/* ssize_t, off_t, open, close, read, lseek, SEEK_SET, SEEK_CUR, SEEK_END */
|
|
#include <unistd.h>
|
|
|
|
/* MAX_PATH, {UCHAR,USHRT,UINT,ULONG,SCHAR,SHRT,INT,LONG}_{MIN,MAX} */
|
|
#include <limits.h>
|
|
// FIXME changing MAX_PATH is broken for now
|
|
//#define MAX_PATH PATH_MAX
|
|
// set same as rb to avoid dragons
|
|
#define MAX_PATH 260
|
|
#endif
|
|
|
|
#endif
|