summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-22 07:28:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-22 07:28:29 +0200
commit442fd797087834cb691cf18f4a808eee6d740353 (patch)
tree108f354f498c3f7272095d58dc5b03d861ef83f0 /x-plane-plugin
parent0ebf074be440dc5ba30802fdccfc786c6d4acbd7 (diff)
misc irrelevant
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/plugin.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index 3795024c..abf34b5f 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -68,12 +68,12 @@ static void reinit_offset() {
}
#ifdef __GNUC__
-# define OT_UNUSED(varname) varname __attribute__((__unused__))
+# define unused(varname) varname __attribute__((__unused__))
#else
-# define OT_UNUSED(varname) varname
+# define unused(varname) varname
#endif
-PortableLockedShm* PortableLockedShm_init(const char *shmName, const char *OT_UNUSED(mutexName), int mapSize)
+PortableLockedShm* PortableLockedShm_init(const char *shmName, const char *unused(mutexName), int mapSize)
{
PortableLockedShm* self = malloc(sizeof(PortableLockedShm));
char shm_filename[NAME_MAX];
@@ -107,10 +107,10 @@ void PortableLockedShm_unlock(PortableLockedShm* self)
}
float write_head_position(
- float OT_UNUSED(inElapsedSinceLastCall),
- float OT_UNUSED(inElapsedTimeSinceLastFlightLoop),
- int OT_UNUSED(inCounter),
- void * OT_UNUSED(inRefcon) )
+ float unused(inElapsedSinceLastCall),
+ float unused(inElapsedTimeSinceLastFlightLoop),
+ int unused(inCounter),
+ void * unused(inRefcon) )
{
if (lck_posix != NULL && shm_posix != NULL) {
if(data_last == NULL){
@@ -235,9 +235,9 @@ PLUGIN_API OTR_COMPAT_EXPORT void XPluginDisable ( void ) {
}
PLUGIN_API OTR_COMPAT_EXPORT void XPluginReceiveMessage(
- XPLMPluginID OT_UNUSED(inFromWho),
- int OT_UNUSED(inMessage),
- void * OT_UNUSED(inParam))
+ XPLMPluginID unused(inFromWho),
+ int unused(inMessage),
+ void * unused(inParam))
{
if (inMessage == XPLM_MSG_AIRPORT_LOADED)
reinit_offset();