1 0 stevel /* 2 0 stevel * CDDL HEADER START 3 0 stevel * 4 0 stevel * The contents of this file are subject to the terms of the 5 0 stevel * Common Development and Distribution License, Version 1.0 only 6 0 stevel * (the "License"). You may not use this file except in compliance 7 0 stevel * with the License. 8 0 stevel * 9 0 stevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 0 stevel * or http://www.opensolaris.org/os/licensing. 11 0 stevel * See the License for the specific language governing permissions 12 0 stevel * and limitations under the License. 13 0 stevel * 14 0 stevel * When distributing Covered Code, include this CDDL HEADER in each 15 0 stevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 0 stevel * If applicable, add the following below this CDDL HEADER, with the 17 0 stevel * fields enclosed by brackets "[]" replaced with your own identifying 18 0 stevel * information: Portions Copyright [yyyy] [name of copyright owner] 19 0 stevel * 20 0 stevel * CDDL HEADER END 21 0 stevel */ 22 0 stevel /* 23 0 stevel * Copyright (c) 1993 by Sun Microsystems, Inc. 24 0 stevel */ 25 0 stevel 26 0 stevel #ifndef _FAKEWIN_H 27 0 stevel #define _FAKEWIN_H 28 0 stevel 29 0 stevel #pragma ident "%Z%%M% %I% %E% SMI" 30 0 stevel 31 0 stevel /* 32 0 stevel * This file defines appropriate macros so that 33 0 stevel * we can use the same codebase for Unix, DOS, and Windows. 34 0 stevel */ 35 0 stevel 36 0 stevel #ifdef __cplusplus 37 0 stevel extern "C" { 38 0 stevel #endif 39 0 stevel 40 0 stevel #ifdef _WINDOWS 41 0 stevel #include <tklib.h> 42 0 stevel 43 0 stevel #define malloc _fmalloc 44 0 stevel #define calloc _fcalloc 45 0 stevel #define free _ffree 46 0 stevel #define strdup _fstrdup 47 0 stevel #define strcpy _fstrcpy 48 0 stevel #define strcmp _fstrcmp 49 0 stevel #define strchr _fstrchr 50 0 stevel #define sprintf wsprintf 51 0 stevel #define vsprintf wvsprintf 52 0 stevel #define memcpy _fmemcpy 53 0 stevel #define strlen _fstrlen 54 0 stevel #else 55 0 stevel #define LPSTR char * 56 0 stevel #endif 57 0 stevel 58 0 stevel #if !defined(_WINDOWS) && !defined(_MSDOS) 59 0 stevel #define _TKFAR 60 0 stevel #endif 61 0 stevel 62 0 stevel #ifndef _WINDOWS 63 0 stevel #define _TKPASCAL 64 0 stevel #define __export 65 0 stevel #endif 66 0 stevel 67 0 stevel #ifdef __cplusplus 68 0 stevel } 69 0 stevel #endif 70 0 stevel 71 0 stevel #endif /* !_FAKEWIN_H */ 72