home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MODEM / UWPC201.ZIP / UW-SRC.ZIP / EXTERN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-31  |  2.1 KB  |  68 lines

  1. //-------------------------------------------------------------------------
  2. //
  3. // EXTERN.H - External DOS and Windows 3.0 declarations for UW/PC.
  4. // 
  5. //  This file is part of UW/PC - a multi-window comms package for the PC.
  6. //  Copyright (C) 1990-1991  Rhys Weatherley
  7. //
  8. //  This program is free software; you can redistribute it and/or modify
  9. //  it under the terms of the GNU General Public License as published by
  10. //  the Free Software Foundation; either version 1, or (at your option)
  11. //  any later version.
  12. //
  13. //  This program is distributed in the hope that it will be useful,
  14. //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. //  GNU General Public License for more details.
  17. //
  18. //  You should have received a copy of the GNU General Public License
  19. //  along with this program; if not, write to the Free Software
  20. //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. //
  22. // Revision History:
  23. // ================
  24. //
  25. //  Version  DD/MM/YY  By  Description
  26. //  -------  --------  --  --------------------------------------
  27. //    1.0    05/05/91  RW  Original Version of EXTERN.H
  28. //
  29. // You may contact the author by:
  30. // =============================
  31. //
  32. //  e-mail: rhys@cs.uq.oz.au
  33. //    mail: Rhys Weatherley
  34. //          5 Horizon Drive
  35. //          Jamboree Heights
  36. //          Queensland 4074
  37. //        Australia
  38. //
  39. //-------------------------------------------------------------------------
  40.  
  41. #ifndef __EXTERN_H__
  42. #define    __EXTERN_H__
  43.  
  44. #if !defined(_Windows)
  45.  
  46. // Define the declarations necessary for the DOS version of UW/PC //
  47. #define    UWPC_DOS    1
  48.  
  49. // Use the Turbo C++ "delay" function under DOS //
  50. #define    DELAY_FUNC    delay
  51.  
  52. #else /* _Windows */
  53.  
  54. // Define the declarations necessary for the Windows 3.0 version of UW/PC //
  55. #define    UWPC_WINDOWS    1
  56.  
  57. #ifndef    NO_WINDOWS_H
  58. #include <windows.h>
  59. #endif    /* NO_WINDOWS_H */
  60.  
  61. // Define the replacement for the DOS "delay" function //
  62. void    UWDelay    (unsigned ms);
  63. #define    DELAY_FUNC    UWDelay
  64.  
  65. #endif /* _Windows */
  66.  
  67. #endif    /* __EXTERN_H__ */
  68.