#include "charset.h"
#include "coding.h"
-#ifndef MAC_OSX
+#if !TARGET_API_MAC_CARBON
#include <MacTypes.h>
#include <Menus.h>
#include <QuickDraw.h>
#if defined (__MRC__) || (__MSL__ >= 0x6000)
#include <ControlDefinitions.h>
#endif
-#endif /* not MAC_OSX */
+#endif /* not TARGET_API_MAC_CARBON */
/* This may include sys/types.h, and that somehow loses
if this is not done before the other system files. */
for (wv = first_wv; wv; wv = wv->next)
{
- if (wv->lname && ! NILP (wv->lname))
+ if (STRINGP (wv->lname))
{
wv->name = SDATA (wv->lname);
}
}
- if (wv->lkey && ! NILP (wv->lkey))
+ if (STRINGP (wv->lkey))
wv->key = SDATA (wv->lkey);
if (wv->contents)
item_name[255] = 0;
#if TARGET_API_MAC_CARBON
{
- CFStringRef string =
- CFStringCreateWithCString (NULL, item_name, kCFStringEncodingUTF8);
+ CFStringRef string = cfstring_create_with_utf8_cstring (item_name);
SetMenuItemTextWithCFString (menu, pos, string);
CFRelease (string);