Source:NetHack 3.4.3/include/mac-carbon.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/mac-carbon.h from NetHack 3.4.3. To link to a particular line, write [[mac-carbon.h#line123]], for example.

  1. /*	SCCS Id: @(#)mac-carbon.h	3.4	2003/06/01	*/
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 2003. */
  3. /* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. /*	Compiler prefix file for the Macintosh Carbon port.
  2. *
  3. *	IMPORTANT: This file is intended only as a compiler prefix
  4. *	file and must NEVER be included by other source (.c or .h)
  5. *	files.
  6. *
  7. *	Usage for MacOS X Project Builder:
  8. *		Project menu -> Edit Active Target '_target_' ->
  9. *		target settings dialog -> Settings -> Simple View ->
  10. *		GCC Compiler Settings ->
  11. *		set "Prefix Header" to include/mac-carbon.h
  12. *
  13. *	Usage for Metrowerks CodeWarrior:
  14. *		Edit menu -> _target_ Settings -> Language Settings ->
  15. *		C/C++ Language ->
  16. *		set "Prefix File" to include/mac-carbon.h
  17. */
  18.  
  19. #define MAC
  20. #undef UNIX
  21.  
  22. /* May already be defined by CodeWarrior as 0 or 1 */
  23. #ifdef TARGET_API_MAC_CARBON
  24. # undef TARGET_API_MAC_CARBON
  25. #endif
  26. #define TARGET_API_MAC_CARBON 1
  27.  
  28. #define GCC_WARN