home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Developers / VideoToolbox / VideoToolboxSources / Pre-compiled headers / VideoToolbox.pch < prev    next >
Encoding:
Text File  |  1995-07-19  |  3.8 KB  |  117 lines  |  [TEXT/MMCC]

  1. /*
  2. VideoToolbox.pch
  3.  
  4. Use this Metrowerks CodeWarrior file to create/update the pre-compiled version
  5. of the VideoToolbox.h header. (VideoToolbox.pch won't work with THINK C; use
  6. VideoToolbox.c instead.) Adding VideoToolbox.pch to your project will cause the
  7. appropriate VideoToolbox pre-compiled header to be created or updated, if
  8. necessary, automatically. You must still write the name of the correct
  9. pre-compiled header into the prefix line of your project's "Language"
  10. Preference.
  11.  
  12. VideoToolbox.pch works only with CodeWarrior, but is more automated than
  13. VideoToolbox.c. It will automatically generate the correct file name for the
  14. precompiled header and store it in the right place. If you include this file in
  15. your project, CodeWarrior will automatically determine when the precompiled
  16. header is stale and will rebuild it automatically. Unfortunately, in CodeWarrior
  17. 5 and 6, the compiler is a bit too gung ho and always re-precompiles when you next
  18. "Make" your project after "Remove Binaries", which is a big waste of time.
  19.  
  20. All the pre-compiled headers should be stored in
  21. "VideoToolbox:VideoToolboxSources:Precompiled headers". Here's my naming
  22. convention for pre-compiled headers:
  23. "VideoToolbox.pre" = THINK C, 68k, 2-byte int, "universal" floating format w/o 8881 fpu.
  24. "VideoToolbox.f.pre" = THINK C, 68k, 2-byte int, "universal" floating format w 8881 fpu.
  25. "VideoToolbox.68k.4i.f.pre" = CodeWarrior, 68k, 4-byte int, 12-byte double for 8881.
  26. "VideoToolbox.68k.4i.pre" = CodeWarrior, 68k, 4-byte int, 10-byte double for no fpu.
  27. "VideoToolbox.ppc.pre" = CodeWarrior, PowerPC (necessarily 4-byte int and 8-byte double).
  28.  
  29. NOTE:
  30. The __option() feature was new to CodeWarrior 5 and did not work properly: it
  31. always returned false. It seems to work fine in CW5.5.
  32.  
  33. HISTORY:
  34. 1/6/95 dgp created it.
  35. 1/16/95 dgp expanded the documentation above
  36. 6/1/95 dgp updated documentation
  37. 7/19/95 dgp added special case for "ansi", which omits all Mac-specific routines.
  38. */
  39.  
  40. #pragma check_header_flags on
  41.  
  42. #ifdef __powerc
  43.     #if !__option(mpwc_newline)
  44.         #pragma precompile_target "VideoToolbox.ppc.pre"
  45.     #else
  46.         #pragma precompile_target "VideoToolbox.ppc.N.pre"
  47.     #endif
  48. #else
  49.     #if !__option(far_data)
  50.         #if !__option(mpwc_newline)
  51.             #if __fourbyteints__
  52.                 #if __MC68881__
  53.                     #if !__option(only_std_keywords)
  54.                         #pragma precompile_target "VideoToolbox.68k.4i.f.pre"
  55.                     #else
  56.                         #pragma precompile_target "VideoToolbox.68k.4i.f.ansi.pre"
  57.                     #endif
  58.                 #else
  59.                     #pragma precompile_target "VideoToolbox.68k.4i.pre"
  60.                 #endif
  61.             #else
  62.                 #if __MC68881__
  63.                     #pragma precompile_target "VideoToolbox.68k.2i.f.pre"
  64.                 #else
  65.                     #pragma precompile_target "VideoToolbox.68k.2i.pre"
  66.                 #endif
  67.             #endif
  68.         #else
  69.             #if __fourbyteints__
  70.                 #if __MC68881__
  71.                     #pragma precompile_target "VideoToolbox.68k.N.4i.f.pre"
  72.                 #else
  73.                     #pragma precompile_target "VideoToolbox.68k.N.4i.pre"
  74.                 #endif
  75.             #else
  76.                 #if __MC68881__
  77.                     #pragma precompile_target "VideoToolbox.68k.N.2i.f.pre"
  78.                 #else
  79.                     #pragma precompile_target "VideoToolbox.68k.N.2i.pre"
  80.                 #endif
  81.             #endif
  82.         #endif
  83.     #else
  84.         #if !__option(mpwc_newline)
  85.             #if __fourbyteints__
  86.                 #if __MC68881__
  87.                     #pragma precompile_target "VideoToolbox.68k.far.4i.f.pre"
  88.                 #else
  89.                     #pragma precompile_target "VideoToolbox.68k.far.4i.pre"
  90.                 #endif
  91.             #else
  92.                 #if __MC68881__
  93.                     #pragma precompile_target "VideoToolbox.68k.far.2i.f.pre"
  94.                 #else
  95.                     #pragma precompile_target "VideoToolbox.68k.far.2i.pre"
  96.                 #endif
  97.             #endif
  98.         #else
  99.             #if __fourbyteints__
  100.                 #if __MC68881__
  101.                     #pragma precompile_target "VideoToolbox.68k.far.N.4i.f.pre"
  102.                 #else
  103.                     #pragma precompile_target "VideoToolbox.68k.far.N.4i.pre"
  104.                 #endif
  105.             #else
  106.                 #if __MC68881__
  107.                     #pragma precompile_target "VideoToolbox.68k.far.N.2i.f.pre"
  108.                 #else
  109.                     #pragma precompile_target "VideoToolbox.68k.far.N.2i.pre"
  110.                 #endif
  111.             #endif
  112.         #endif
  113.     #endif
  114. #endif
  115.  
  116. #include "VideoToolbox.h"
  117.