mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-21 10:27:36 +02:00
fixed: code was not gnuc 4.2 compatible
This commit is contained in:
parent
a5d702c8b5
commit
228befdc2c
5 changed files with 86 additions and 81 deletions
|
@ -24,11 +24,9 @@
|
|||
#import <string.h>
|
||||
#import <sys/sysctl.h>
|
||||
|
||||
void
|
||||
getProcessSerialNumber(const char* name, ProcessSerialNumber& psn);
|
||||
|
||||
bool
|
||||
testProcessName(const char* name, const ProcessSerialNumber& psn);
|
||||
// TODO: upgrade deprecated function usage in these functions.
|
||||
void getProcessSerialNumber(const char* name, ProcessSerialNumber& psn);
|
||||
bool testProcessName(const char* name, const ProcessSerialNumber& psn);
|
||||
|
||||
//
|
||||
// COSXScreenSaver
|
||||
|
@ -163,7 +161,9 @@ COSXScreenSaver::launchTerminationCallback(
|
|||
return (CallNextEventHandler(nextHandler, theEvent));
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#if GNUC_46
|
||||
# pragma GCC diagnostic push
|
||||
#endif
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
|
||||
void
|
||||
|
@ -199,4 +199,6 @@ testProcessName(const char* name, const ProcessSerialNumber& psn)
|
|||
return (err == 0 && CFEqual(CFSTR("ScreenSaverEngine"), processName));
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
#if GNUC_46
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue