#ifndef CONFIG_H
#define CONFIG_H

#define JOB_CONTROL
#define HAVE_RESOURCE

#include "tm.h"
/* GNU stddef is incompatible with SUN's - which is quite broken. */
#include <stddef.h>

#ifdef __cplusplus
#define CPLUS
#define EXTERN extern "C"
#define EXTERN_C extern "C" {
#define END_EXTERN_C }
#else
#define EXTERN extern
#define EXTERN_C
#define END_EXTERN_C
#endif

#ifdef __STDC__
#define Pointer void *
#else
#define Pointer char *
#endif

/* Largest signed integer type such that sizeof(void_int) <= sizeof(void*). */
typedef int void_int;
typedef unsigned void_unsigned;
#define IntToVoid(i) ((void*)(i))
#define VoidToInt(v) ((void_int)(void*)(v))

#ifndef ENCODE_CHAR_2
#define ENCODE_CHAR_2 '_'
#endif

#if defined(__GNU_LIBRARY) && !defined(__GNU_LIBRARY__)
#define __GNU_LIBRARY__
#endif

#endif /* !CONFIG_H */
