diff options
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/macfns.c b/src/macfns.c index e18d6089df7..e0e58ff5c6f 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -51,6 +51,14 @@ Boston, MA 02110-1301, USA. */ | |||
| 51 | 51 | ||
| 52 | extern void free_frame_menubar (); | 52 | extern void free_frame_menubar (); |
| 53 | 53 | ||
| 54 | #if TARGET_API_MAC_CARBON | ||
| 55 | |||
| 56 | /* Carbon version info */ | ||
| 57 | |||
| 58 | static Lisp_Object Vmac_carbon_version_string; | ||
| 59 | |||
| 60 | #endif /* TARGET_API_MAC_CARBON */ | ||
| 61 | |||
| 54 | /* Non-zero means we're allowed to display an hourglass cursor. */ | 62 | /* Non-zero means we're allowed to display an hourglass cursor. */ |
| 55 | 63 | ||
| 56 | int display_hourglass_p; | 64 | int display_hourglass_p; |
| @@ -4718,6 +4726,22 @@ such a font. This is especially effective for such large fonts as | |||
| 4718 | Chinese, Japanese, and Korean. */); | 4726 | Chinese, Japanese, and Korean. */); |
| 4719 | Vx_pixel_size_width_font_regexp = Qnil; | 4727 | Vx_pixel_size_width_font_regexp = Qnil; |
| 4720 | 4728 | ||
| 4729 | #if TARGET_API_MAC_CARBON | ||
| 4730 | DEFVAR_LISP ("mac-carbon-version-string", &Vmac_carbon_version_string, | ||
| 4731 | doc: /* Version info for Carbon API. */); | ||
| 4732 | { | ||
| 4733 | OSErr err; | ||
| 4734 | UInt32 response; | ||
| 4735 | char carbon_version[16] = "Unknown"; | ||
| 4736 | |||
| 4737 | err = Gestalt (gestaltCarbonVersion, &response); | ||
| 4738 | if (err == noErr) | ||
| 4739 | sprintf (carbon_version, "%u.%u.%u", | ||
| 4740 | (response >> 8) & 0xf, (response >> 4) & 0xf, response & 0xf); | ||
| 4741 | Vmac_carbon_version_string = build_string (carbon_version); | ||
| 4742 | } | ||
| 4743 | #endif /* TARGET_API_MAC_CARBON */ | ||
| 4744 | |||
| 4721 | /* X window properties. */ | 4745 | /* X window properties. */ |
| 4722 | defsubr (&Sx_change_window_property); | 4746 | defsubr (&Sx_change_window_property); |
| 4723 | defsubr (&Sx_delete_window_property); | 4747 | defsubr (&Sx_delete_window_property); |