Make OakRunIOAlertPanel accessible from C++

I moved it to a C header. An alternative would be to put some #ifdef’s around the Objective-C stuff in OakAppKit.h, but with the standalone header, it’s clear that this is the only thing we need from OakAppKit.
This commit is contained in:
Allan Odgaard
2012-08-15 20:47:06 +02:00
parent f4ecbe0f1e
commit 67dc0b3943
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
#ifndef IO_ALERT_PANEL_H_TGU0N94P
#define IO_ALERT_PANEL_H_TGU0N94P
#include <oak/misc.h>
PUBLIC void OakRunIOAlertPanel (char const* format, ...) __attribute__ ((format (printf, 1, 2)));
#endif /* end of include guard: IO_ALERT_PANEL_H_TGU0N94P */

View File

@@ -1,8 +1,8 @@
#include "IOAlertPanel.h"
#include <oak/misc.h>
PUBLIC extern NSString* const OakCursorDidHideNotification;
PUBLIC void OakRunIOAlertPanel (char const* format, ...) __attribute__ ((format (printf, 1, 2)));
PUBLIC BOOL OakIsAlternateKeyOrMouseEvent (NSUInteger flags = NSAlternateKeyMask, NSEvent* anEvent = [NSApp currentEvent]);
#if !defined(MAC_OS_X_VERSION_10_7) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)