summaryrefslogtreecommitdiffstats
path: root/macosx/main.mm
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-07-16 12:00:21 +0000
committerritsuka <[email protected]>2014-07-16 12:00:21 +0000
commit3bd8e012e3416963b89035f3212b632d9aa85958 (patch)
treed527d7282bb7eb1ca81f8b230390b040c1ccbbb1 /macosx/main.mm
parent0e165d0a096d606b52b1bcace1911c7d0c24be04 (diff)
MacGui: Replaced some deprecated functions in HBDVDDetector and ignored the QTKit deprecations warnings for now. Grouped some files in the Xcode project.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6233 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/main.mm')
-rw-r--r--macosx/main.mm12
1 files changed, 7 insertions, 5 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index bc5159fae..4915d2f5b 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -11,6 +11,10 @@
#import "hb.h"
+void SigHandler( int signal );
+void hb_error_handler( const char *errmsg );
+char * str_printf(const char *fmt, ...);
+
void SigHandler( int signal )
{
[NSApp terminate: NULL];
@@ -22,11 +26,9 @@ void SigHandler( int signal )
* Change this to display a dialog box - and maybe move it somewhere else,
* this is the only place I could find that looked like C :)
****************************************************************************/
-extern "C" {
- void hb_error_handler( const char *errmsg )
- {
- fprintf(stderr, "GUI ERROR dialog: %s\n", errmsg );
- }
+void hb_error_handler( const char *errmsg )
+{
+ fprintf(stderr, "GUI ERROR dialog: %s\n", errmsg );
}
char * str_printf(const char *fmt, ...)