/*
	Copyright 06/10/99 Sun Microsystems, Inc. All Rights Reserved
*/

#ifndef _ERRNO_ISO_SUNWCC_H
#define	_ERRNO_ISO_SUNWCC_H

#pragma ident "@(#)errno_iso_SUNWCC.h	1.2  06/10/99 C++5.0"

#include <sys/errno.h>

extern "C" {

#if (defined(_REENTRANT) || defined(_TS_ERRNO) || \
      _POSIX_C_SOURCE - 0 >= 199506L) && !(defined(lint) || defined(__lint))
  extern int *___errno();
  #define	errno (*(___errno()))
#else
  extern int errno;
  #define errno errno /* errno is always a macro */
#endif	/* defined(_REENTRANT) || defined(_TS_ERRNO) */

} /* end of extern "C" */


#endif	/* _ERRNO_ISO_SUNWCC_H */
