home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / pch / Comm_Headers.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  80 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  20. //    Comm_Headers.c
  21. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  22.  
  23. #define macintosh            // macintosh is defined for GUSI
  24. #define XP_MAC 1
  25.  
  26. // we have to do this here because ConditionalMacros.h will be included from
  27. // within OpenTptInternet.h and will stupidly define these to 1 if they
  28. // have not been previously defined. The new PowerPlant (CWPro1) requires that
  29. // this be set to 0. (pinkerton)
  30. #define OLDROUTINENAMES 0
  31. #ifndef OLDROUTINELOCATIONS
  32.     #define OLDROUTINELOCATIONS    0
  33. #endif
  34.  
  35. // OpenTransport.h has changed to not include the error messages we need from
  36. // it unless this is defined. Why? dunnno...(pinkerton)
  37. #define OTUNIXERRORS 1
  38.  
  39. #ifndef DEBUG
  40.     #define NDEBUG
  41. #endif
  42.  
  43. // #include <osl.h> for some reason, including this messes up PP compiles, we get 
  44. // "already defined" errors
  45.  
  46. // Unix headers
  47. #include <unistd.h>
  48. #ifdef __MATH__
  49. #errror scream
  50. #endif
  51. #include <assert.h>
  52. #include <ctype.h>
  53. #include <errno.h>
  54. #include <limits.h>
  55. #include <locale.h>
  56. #include <setjmp.h>
  57. #ifdef __MATH__
  58. #errror scream
  59. #endif
  60. #include <stdio.h>
  61. #include <stdlib.h>
  62. #include <stddef.h>
  63. #include <string.h>
  64. #include <time.h>
  65. // #include <yvals.h>
  66. #include <OpenTptInternet.h>        // include this first for errno's
  67.  
  68. #include <PP_MacHeaders.c>            // Toolbox headers
  69.                                     // Action Classes
  70. #include <Sound.h>            // Toolbox headers
  71.  
  72. // no more compat.h
  73. #ifndef    MAX
  74.     #define    MAX(_a,_b)    ((_a)<(_b)?(_b):(_a))
  75. #endif
  76.  
  77. #ifndef    MIN
  78.     #define    MIN(_a,_b)    ((_a)<(_b)?(_a):(_b))
  79. #endif
  80.