1 /* $Id$ 2 * Turbo C and Borland C for OS/2 compiler-specific declarations 3 * 4 * HUSKYLIB: common defines, types and functions for HUSKY 5 * 6 * This is part of The HUSKY Fidonet Software project: 7 * see http://husky.sourceforge.net for details 8 * 9 * 10 * HUSKYLIB is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public 12 * License as published by the Free Software Foundation; either 13 * version 2 of the License, or (at your option) any later version. 14 * 15 * HUSKYLIB is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; see file COPYING. If not, write to the 22 * Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * 24 * See also http://www.gnu.org, license may be found here. 25 */ 26 27 /* Borland C/C++ for OS/2 */ 28 29 #ifndef HUSKY_BCO_H 30 #define HUSKY_BCO_H 31 32 33 #ifndef __TURBOC__ 34 #error This file may be used only with Turbo C and Borland C ! 35 #endif 36 37 #ifndef __OS2__ 38 #error This file may be used only with OS/2 version of Turbo C or Borland C ! 39 #endif 40 41 42 # define _stdc cdecl 43 # define _intr 44 # define _intcast 45 # define _veccast 46 # define _fast _fastcall 47 # define _loadds 48 # define near 49 # undef far 50 # define far 51 52 # define farread read 53 # define farwrite write 54 55 # ifndef _XPENTRY 56 # define _XPENTRY __syscall 57 # endif 58 # define mysleep(x) sleep(x); 59 # define HAS_sleep 1 60 61 # include <io.h> 62 # include <dos.h> 63 64 # define strcasecmp stricmp 65 # define strncasecmp strncmpi 66 67 #endif 68