//
// Dos/Windows dbconf.h
// 

// ADDED BY ALEX::
#define BOOL_DEFINED 1

#define __MSVC__
#ifndef DBCONF_INCL
#define DBCONF_INCL
#define STDC_HEADERS 1
#define HAVE_MEMORY_H 1
#define HAVE_MALLOC_H 1
#define HAVE_STDLIB_H 1
#define __BROKEN_SIGNED_CHAR 1
//#define EARLY_LEX_INCLUDE 1
#define HAVE_SHMGET_PROTO
#define HAVE_INDEX
#define OPEN_CAST (const char *)

//#define SIZEOF_INT 2
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2

#define SIZEOF_LONG 4
#define SIZEOF_INT32 4
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define BINARY_OPEN_MODE

// get rid of signed/unsigned missmatches in lseek in a portable way
#define SEEK_RETURN_T long

// these allow us to have fewer #ifdef's in our code
#if defined(__BORLAND_C__) || defined(_MSC_VER) || defined(__SASC) || defined (__GNUG__)
#  define BINARY_FILE    O_BINARY
#  define BINARY_STREAM  ios::binary
#  define TRUNCATE_FILE  0
#else
#  define BINARY_FILE    0
#  define BINARY_STREAM  0
#  define TRUNCATE_FILE  O_TRUNC
#endif

#if defined(_DLL) || defined (_WINDLL)
#	define __DLL__ 1
#endif
#if defined(_WINDOWS)
#	define _Windows 1
#endif

#if defined(_WIN32) && !defined(__WIN32__)
#  define __WIN32__
#endif

#  if defined(__DLL__)
#	  if !defined(__WIN32__)
#    		define _FAR __far
#   else
#       define _FAR
#	  endif
#    if defined(_MY_CLASSDLL)
#      define DIA_EXPORT _export
#    else
#      define DIA_EXPORT _FAR
#    endif
#  elif defined(_MY_CLASSDLL)
#    define DIA_EXPORT huge
#	else
#	  define DIA_EXPORT
#endif


//
// PC system,s tend to have restrictive file extensions
//
#define FIXEDEXTENSION

//
// Also restricted name lengths.
//
#define FILENAMELEN 8

#if 0
#if defined(_Windows) || defined(__WIN32__)
#	if defined(__DLL__)
#		define DIA_EXPORT _export
#	else
#		if defined(__WIN32__)
#			define DIA_EXPORT
#		else
#			define DIA_EXPORT huge
#		endif
#	endif
#else
	#define DIA_EXPORT
#endif
#endif

#endif
