////////////////////////////////////////////////////////////////////////////
//
// - Platform dependent settings plus configuration of exported
// symbols
// 
// (c) 2002, Photonfocus AG, CH-8853 Lachen
//
// $Id: platform.h,v 1.2 2009-04-23 12:21:47 schluckebier Exp $
//
////////////////////////////////////////////////////////////////////////////

#ifndef PLATFORM_H_INCLUDED
#define PLATFORM_H_INCLUDED

#if defined (WIN32) || defined (__CYGWIN__)
#	define WIN32_LEAN_AND_MEAN		// Exclude crap
//#	include <windows.h>
#endif

#define BYTE unsigned char
#ifndef NULL
#	define NULL 0
#endif


#	ifndef PFHANDLE
#		define PFHANDLE int
#	endif
#	define DWORD unsigned long



#if defined(__QNX__)
//#	include <strings.h>
#endif

#if defined(WIN32) && !defined(__CYGWIN__)
#	define strcasecmp _stricmp
#	define strncasecmp _strnicmp
#else
#	include <string.h>
#endif

#ifdef WIN32
#	define DLLHANDLE  HINSTANCE
#	define COMMHANDLE HANDLE
#else 
#	define DLLHANDLE  void *
#	define COMMHANDLE int
#	define INVALID_HANDLE_VALUE (PFHANDLE) -1
#endif


#endif // PLATFORM_H_INCLUDED
