
#ifndef CONFIG_H
#define CONFIG_H

#define INT68_BITS 32
#define _FILE68_NO_SAVE_FUNCTION_ 1
#define ISTREAM68_NO_FILE 1
#define ISTREAM68_NO_NULL 1
#define USE_UNICE68 1
#define HAVE_LIMITS_H
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define NDEBUG 1
#define NDEBUG_LIBSC68 1

#if defined(ROCKBOX)
#include <codecs/lib/codeclib.h>
#define alloc68(N)   codec_malloc(N);
#define calloc68(N)  codec_calloc(N,1);
#define free68(DATA) codec_free(DATA);
#endif

#if defined(CPU_ARM) || defined(CPU_MIPS) || !defined(ROCKBOX)
#if (CONFIG_CPU != PP5002) || defined(WIN32)
    #undef  ICODE_ATTR
    #define ICODE_ATTR

    #undef  IDATA_ATTR
    #define IDATA_ATTR

    #undef  ICONST_ATTR
    #define ICONST_ATTR

    #undef  IBSS_ATTR
    #define IBSS_ATTR
#endif

#undef strncpy
#define strncpy strlcpy

#undef strtol
long mystrtoul(const char * s, char ** end, unsigned int base);
#define strtol mystrtoul
#endif

#define PACKAGE_VERNUM 300
#define PACKAGE_STRING "libsc68 3.0.0"
#define PACKAGE_URL

#endif
