Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.8 KiB

  1. /* @(#)CM_VerSion xcf_base.h atm09 1.2 16499.eco sum= 64660 atm09.002 */
  2. /* @(#)CM_VerSion xcf_base.h atm08 1.4 16293.eco sum= 04404 atm08.004 */
  3. /***********************************************************************/
  4. /* */
  5. /* Copyright 1995-1996 Adobe Systems Incorporated. */
  6. /* All rights reserved. */
  7. /* */
  8. /* Patents Pending */
  9. /* */
  10. /* NOTICE: All information contained herein is the property of Adobe */
  11. /* Systems Incorporated. Many of the intellectual and technical */
  12. /* concepts contained herein are proprietary to Adobe, are protected */
  13. /* as trade secrets, and are made available only to Adobe licensees */
  14. /* for their internal use. Any reproduction or dissemination of this */
  15. /* software is strictly forbidden unless prior written permission is */
  16. /* obtained from Adobe. */
  17. /* */
  18. /* PostScript and Display PostScript are trademarks of Adobe Systems */
  19. /* Incorporated or its subsidiaries and may be registered in certain */
  20. /* jurisdictions. */
  21. /* */
  22. /***********************************************************************/
  23. #ifndef XCF_BASE_H
  24. #define XCF_BASE_H
  25. #include <stddef.h>
  26. #include "xcf_win.h" /* set/define Windows dependent configuration */
  27. #include <strsafe.h>
  28. #ifndef PTR_PREFIX
  29. #define PTR_PREFIX
  30. #endif
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if 0
  35. #ifndef _SIZE_T
  36. typedef unsigned int size_t;
  37. #define _SIZE_T
  38. #endif
  39. #endif
  40. #ifndef NULL
  41. #define NULL ((void PTR_PREFIX *)0)
  42. #endif
  43. /* Basic Types */
  44. #ifndef PUBLICTYPES_H /* the following are already defined in publictypes.h */
  45. typedef unsigned char Card8;
  46. typedef unsigned short int Card16;
  47. typedef unsigned long int Card32;
  48. typedef unsigned CardX;
  49. typedef char Int8;
  50. typedef short int Int16;
  51. typedef long int Int32;
  52. typedef int IntX;
  53. typedef unsigned int boolean;
  54. #endif /* end ifndef PUBLICTYPES_H */
  55. #ifndef true
  56. #define true 1
  57. #endif
  58. #ifndef false
  59. #define false 0
  60. #endif
  61. /* Inline Functions */
  62. #ifndef ABS
  63. #define ABS(x) ((x)<0?-(x):(x))
  64. #endif
  65. #ifndef MIN
  66. #define MIN(a,b) ((a)<(b)?(a):(b))
  67. #endif
  68. #ifndef MAX
  69. #define MAX(a,b) ((a)>(b)?(a):(b))
  70. #endif
  71. //
  72. // Count of characters
  73. //
  74. #define CCHOF(x) (sizeof(x)/sizeof(*(x)))
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif /* XCF_BASE_H */