2006-03-10 18:39:22 +00:00

67 lines
2.2 KiB
C

/***********************************************************************
*
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; version 2.1
* of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, Novell, Inc.
*
* To contact Novell about this file by physical or electronic mail,
* you may find current contact information at www.novell.com.
*
***********************************************************************/
#if !defined(NUNICODE_H)
#define NUNICODE_H
#include <stddef.h>
/* For LIBC builds the XPlat libraries use the LIBC unicode and
* localization support. LIBC is the next generation of the c-runtime
* on NetWare. All other platforms will continue to use unicode.h
* NOTE: stddef.h in the LIBC sdk defines __NOVELL_LIBC__
*
*/
#if defined(__NOVELL_LIBC__)
#include "unilib.h"
/* unilib.h doesn't define the following with are used significantly
* in the XPlat SDK. Define them for the XPlat SDK.
*/
/* NOTE: LibC WinSock2 #defines "unicode" inside ws2defs.h.
* If LibC WinSock2 headers have been included, undefine unicode
* and typdef it the way XPlat SDK expects it.
*/
#if defined(unicode)
#undef unicode
#endif
#ifndef UNICODE_TYPE_DEFINED
#define UNICODE_TYPE_DEFINED
typedef unicode_t unicode; /* use LibC's unicode_t type */
#endif
typedef unicode * punicode;
typedef unicode ** ppunicode;
#else /* All non-LibC builds */
#include "unicode.h"
#endif /* #if defined(__NOVELL_LIBC__) */
#endif /* #if !defined(NUNICODE_H) */