// This may look like C code, but it is really -*- C++ -*-

//<copyright>
// 
// Copyright (c) 1993-1995
// Institute for Information Processing and Computer Supported New Media (IICM),
// Graz University of Technology, Austria.
// 
//</copyright>

//<file>
//
// Name:       types.h
//
// Purpose:    Common Hyper-G types
//
// Created:     1 Sep 92    Gerald Pani
//
// Description:
//
//</file>
// 
// $Id: types.h,v 1.5 1997/01/29 15:55:18 gorasche Exp $
// 
// $Log: types.h,v $
// Revision 1.5  1997/01/29 15:55:18  gorasche
// some defines for Win32
//
// Revision 1.4  1996/06/24 10:09:05  gpani
// WIN32
//
// Revision 1.3  1995/12/18 15:00:26  gpani
// - InterViews boolean
// + bool for __GNUC__
//

#ifndef hg_utils_types
#define hg_utils_types

#ifdef __GNUC__
typedef bool boolean;
#else
#ifdef WIN32
  // gorasche: 250696 disable "future use" warning
  #pragma warning(disable: 4237)
  #define O_SYNC 0
  typedef unsigned bool;
#endif
typedef unsigned boolean;
static const unsigned false = 0;
static const unsigned true = 1;
#endif

#ifdef nil
#undef nil
#endif

#define nil 0

#ifdef __osf__
#  define HG_UL32 unsigned int
#else
#  define HG_UL32 unsigned long
#endif

// internet address
#define HG_inet_addr HG_UL32

typedef HG_UL32 hgtime;

#endif
