

/*C*

________________________________________________________________

        xite_funcproto.h
        $Id: xite_funcproto.h,v 1.7 1997/03/24 10:55:36 svein Exp $
        Copyright 1995, Blab, UiO
        Image processing lab, Department of Informatics
        University of Oslo
        E-mail: blab@ifi.uio.no
________________________________________________________________
  
  Permission to use, copy, modify and distribute this software and its
  documentation for any purpose and without fee is hereby granted, 
  provided that this copyright notice appear in all copies and that 
  both that copyright notice and this permission notice appear in supporting
  documentation and that the name of B-lab, Department of Informatics or
  University of Oslo not be used in advertising or publicity pertaining 
  to distribution of the software without specific, written prior permission.

  B-LAB DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL B-LAB
  BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 

*/

#ifndef _XITE_FUNCPROTO_H_
#define _XITE_FUNCPROTO_H_

#if defined(__STDC__) || defined(_ANSI_SOURCE) || defined(__cplusplus)
/* __STDC__ or _ANSI_SOURCE defined */
# ifndef FUNCPROTO
/* Define FUNCPROTO. */
#   define FUNCPROTO 1
# endif
#endif

#if defined(USE_PROTOTYPES) && !defined(FUNCPROTO)
/* USE_PROTOTYPES defined, typically from gcc. */
# define FUNCPROTO
#endif

#if defined(__USE_FIXED_PROTOTYPES__) && !defined(FUNCPROTO)
/* __USE_FIXED_PROTOTYPES__ defined, typically from gcc. */
# define FUNCPROTO
#endif

#if (defined(IRIX) || defined(IRIX64)) && !defined(FUNCPROTO)
/* SGI cc is capable of handling prototypes, even with the flag -cckr */
/* Define FUNCPROTO. */
# define FUNCPROTO
#endif

#if defined(OSF1) && !defined(FUNCPROTO)
/* Define _NO_PROTO. */
# define _NO_PROTO
#endif

#if defined(HPUX) && defined(FUNCPROTO) && !defined(_PROTOTYPES)
/* Define _PROTOTYPES */
# define _PROTOTYPES
#endif

#ifdef FUNCPROTO
# define _XITE_PARAMS(PARS) PARS
#else
# define _XITE_PARAMS(PARS) ()
#endif /* FUNCPROTO */

#ifdef __cplusplus
# define _XITE_CPLUSPLUS_BEGIN extern "C" {
# define _XITE_CPLUSPLUS_END }
#else
# define _XITE_CPLUSPLUS_BEGIN
# define _XITE_CPLUSPLUS_END
#endif /* __cplusplus */

#endif /* _XITE_FUNCPROTO_H_ */
