/*=Top=of=Header================================================================
*
*  Module-Name: RNAV
*
*  File:	    standard.h
*
*  Project:     TIGER
*
*+-----------------------------------------------------------------------------+
*|                                                                             |
*|     S T N    A t l a s    E l e k t r o n i k    G m b H     B r e m e n    |
*|                                                                             |
*|     For  this software  product we  reserve all  rights, including those    |
*|     relating to patents or registered designs. It must not be reproduced    |
*|     or used  otherwise or made available  to any third party without our    |
*|     prior permission in writing.                                            |
*|                                                                             |
*+-----------------------------------------------------------------------------+
*
*  Brief Description:
*	includes all standard header files
*
*
*
*  Parameters: 
*
*  Output parameter :
*
*
*  Input parameter :
*
*  Language:
*
*           ANSI-C
*
*  Peripherals used:
*
*           none
*
*  Functions used:
*
*           none
*
*-------------------------------------------------------------------------------
*
*  Project:         TIGER
*
*  Item Number:     SG 5133 G 004
*
*  Release Date:    07.08.02
*
*  Validity Grade:  GS2
*
*  Revision:        1.1
*
*  Revision Date:
*
*  Author:          M.Braun
*
*  Department:	    SFT
*
*-------------------------------------------------------------------------------
*
*  Long Description:
*	includes all standard header files
*
*
*  Rule for use:
*
*
*-------------------------------------------------------------------------------
*
*  Modifications:
*
*   Date: 07.08.2002    Name: M.Braun
*   Comment: 
*
*
*=Bottom=of=Header============================================================*/




#ifndef _standard_h_
#define _standard_h_

/* ----------------------------------------------------------------------------------- */

/* platform dependent definitions */
#include "config.h"


/* major standard header files */
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <errno.h>
#include <assert.h>
#include <signal.h>
#include <fcntl.h>
#include <ctype.h>


/* ----------------------------------------------------------------------------------- */

#if (ACT_OPSYS == OPSYS_WIN32)


#define WIN32_WITH_SHMEM  1

#if (WIN32_WITH_SHMEM)
#include <afxadv.h>
#else
#include <windows.h>
#endif


/* common header files */
#include <winbase.h>
#include <process.h>
#include <winsock.h>
#include <io.h>



#define getpid()	_getpid()
#define sleep(x)	Sleep(1000*x)

#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif

#endif

/* ----------------------------------------------------------------------------------- */

/* common block for all unix systems */

#if (OPSYS_IS_UNIX)

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/times.h>

#include <malloc.h>
#include <termio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <setjmp.h>

#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <rpc/types.h>
#include <rpc/xdr.h>

#endif

/* ----------------------------------------------------------------------------------- */

#if (ACT_OPSYS == OPSYS_IRIX)

#include <task.h>
#include <sys/select.h>                   /* fuer MaxionOS */

#endif

/* ----------------------------------------------------------------------------------- */

#if (ACT_OPSYS == OPSYS_LINUX)

#include <asm/io.h>

#endif

/* ----------------------------------------------------------------------------------- */

/* include this header file here, not an the begin of standard.h !! */
#include "macros.h"


#endif /* _standard_h_ */

