#ifndef ADM_CORE_H
#define ADM_CORE_H

#define ADM_INSTALL_DIR "/usr"
#define ADM_RELATIVE_LIB_DIR "lib"
#define ADM_PLUGIN_DIR "ADM_plugins6"

// GCC - CPU
/* #undef ADM_BIG_ENDIAN */
/* #undef ADM_CPU_64BIT */
#define ADM_CPU_ARMEL
/* #undef ADM_CPU_ARM64 */
/* #undef ADM_CPU_RISCV */
/* #undef ADM_CPU_RISCV_64 */
/* #undef ADM_CPU_X86 */
/* #undef ADM_CPU_X86_32 */
/* #undef ADM_CPU_X86_64 */

// GCC - Operating System
/* #undef ADM_BSD_FAMILY */

// use nvidia hw encoding 
/* #undef USE_NVENC */
// use vdpau h264 hw decoding 
#define USE_VDPAU
// use xvba h264 hw decoding 
/* #undef USE_XVBA */
// use libva h264 hw decoding 
#define USE_LIBVA
// use dxva2 hw decoding 
/* #undef USE_DXVA2 */
// use videotoolbox hw decoding and encoding
/* #undef USE_VIDEOTOOLBOX */

// 'gettimeofday' function is present
#define HAVE_GETTIMEOFDAY

// Presence of header files
#define HAVE_INTTYPES_H   1
#define HAVE_STDINT_H     1
/* #undef HAVE_SYS_TYPES_H */

#ifdef _MSC_VER
#	define ftello _ftelli64
#	define fseeko _fseeki64
// Not needed anymore #	define snprintf _snprintf
#	define strcasecmp(x, y) _stricmp(x, y)
#elif defined(__MINGW32__)
#	define rindex strrchr
#	define index strchr

#	if !1
#		define ftello ftello64 // not defined on every mingw64_w32 version (e.g. set 2011-11-03 does not have it)
#		define fseeko fseeko64
#	endif // FTELLO
#endif

#if defined(ADM_CPU_X86_32) && defined(__GNUC__)
#    define attribute_align_arg __attribute__((force_align_arg_pointer))
#else
#    define attribute_align_arg
#endif

/* use Nvwa memory leak detector */
/* #undef FIND_LEAKS */

#endif
