Clean up include guards
The previous style(s) used in most places here violates the C standard, and in practice can trigger -Wreserved-id-macro in clang for client code. So, switch to a conventional style that doesn't trigger warnings (and is supported by tools like clang-tidy).
This commit is contained in:
parent
b601e3dc28
commit
fe0ab491b4
|
@ -23,8 +23,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef __jack_control_h__
|
||||
#define __jack_control_h__
|
||||
#ifndef JACK_CONTROL_H
|
||||
#define JACK_CONTROL_H
|
||||
|
||||
#include <jack/jslist.h>
|
||||
|
||||
|
@ -559,4 +559,4 @@ jack_log(
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* __jack_control_h__ */
|
||||
#endif /* JACK_CONTROL_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_intclient_h__
|
||||
#define __jack_intclient_h__
|
||||
#ifndef JACK_INTCLIENT_H
|
||||
#define JACK_INTCLIENT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -134,4 +134,4 @@ jack_status_t jack_internal_client_unload (jack_client_t *client,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __jack_intclient_h__ */
|
||||
#endif /* JACK_INTCLIENT_H */
|
||||
|
|
6
jack.h
6
jack.h
|
@ -17,8 +17,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_h__
|
||||
#define __jack_h__
|
||||
#ifndef JACK_JACK_H
|
||||
#define JACK_JACK_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -1334,4 +1334,4 @@ void jack_free(void* ptr) JACK_OPTIONAL_WEAK_EXPORT;
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __jack_h__ */
|
||||
#endif /* JACK_JACK_H */
|
||||
|
|
6
jslist.h
6
jslist.h
|
@ -21,8 +21,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_jslist_h__
|
||||
#define __jack_jslist_h__
|
||||
#ifndef JACK_JSLIST_H
|
||||
#define JACK_JSLIST_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -299,4 +299,4 @@ jack_slist_sort (JSList *list,
|
|||
compare_func);
|
||||
}
|
||||
|
||||
#endif /* __jack_jslist_h__ */
|
||||
#endif /* JACK_JSLIST_H */
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef __jack_metadata_h__
|
||||
#define __jack_metadata_h__
|
||||
#ifndef JACK_METADATA_H
|
||||
#define JACK_METADATA_H
|
||||
|
||||
#include <jack/types.h>
|
||||
|
||||
|
@ -319,4 +319,4 @@ extern const char* JACK_METADATA_SIGNAL_TYPE;
|
|||
} /* namespace */
|
||||
#endif
|
||||
|
||||
#endif /* __jack_metadata_h__ */
|
||||
#endif /* JACK_METADATA_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __JACK_MIDIPORT_H
|
||||
#define __JACK_MIDIPORT_H
|
||||
#ifndef JACK_MIDIPORT_H
|
||||
#define JACK_MIDIPORT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -166,5 +166,6 @@ jack_midi_get_lost_event_count(void *port_buffer) JACK_OPTIONAL_WEAK_E
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* JACK_MIDIPORT_H */
|
||||
|
||||
|
||||
#endif /* __JACK_MIDIPORT_H */
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _RINGBUFFER_H
|
||||
#define _RINGBUFFER_H
|
||||
#ifndef JACK_RINGBUFFER_H
|
||||
#define JACK_RINGBUFFER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -231,4 +231,4 @@ size_t jack_ringbuffer_write_space(const jack_ringbuffer_t *rb);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* JACK_RINGBUFFER_H */
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_session_h__
|
||||
#define __jack_session_h__
|
||||
#ifndef JACK_SESSION_H
|
||||
#define JACK_SESSION_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -299,4 +299,5 @@ jack_client_has_session_callback (jack_client_t *client, const char *client_name
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* JACK_SESSION_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __statistics_h__
|
||||
#define __statistics_h__
|
||||
#ifndef JACK_STATISTICS_H
|
||||
#define JACK_STATISTICS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -51,4 +51,4 @@ void jack_reset_max_delayed_usecs (jack_client_t *client);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __statistics_h__ */
|
||||
#endif /* JACK_STATISTICS_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_systemdeps_h__
|
||||
#define __jack_systemdeps_h__
|
||||
#ifndef JACK_SYSTEMDEPS_H
|
||||
#define JACK_SYSTEMDEPS_H
|
||||
|
||||
#ifndef POST_PACKED_STRUCTURE
|
||||
|
||||
|
@ -137,4 +137,4 @@
|
|||
#define JACK_LIB_EXPORT
|
||||
#endif
|
||||
|
||||
#endif /* __jack_systemdeps_h__ */
|
||||
#endif /* JACK_SYSTEMDEPS_H */
|
||||
|
|
6
thread.h
6
thread.h
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_thread_h__
|
||||
#define __jack_thread_h__
|
||||
#ifndef JACK_THREAD_H
|
||||
#define JACK_THREAD_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -133,4 +133,4 @@ void jack_set_thread_creator (jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __jack_thread_h__ */
|
||||
#endif /* JACK_THREAD_H */
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_transport_h__
|
||||
#define __jack_transport_h__
|
||||
#ifndef JACK_TRANSPORT_H
|
||||
#define JACK_TRANSPORT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -536,4 +536,4 @@ void jack_set_transport_info (jack_client_t *client,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __jack_transport_h__ */
|
||||
#endif /* JACK_TRANSPORT_H */
|
||||
|
|
6
types.h
6
types.h
|
@ -17,8 +17,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_types_h__
|
||||
#define __jack_types_h__
|
||||
#ifndef JACK_TYPES_H
|
||||
#define JACK_TYPES_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <pthread.h>
|
||||
|
@ -526,4 +526,4 @@ enum JackPortFlags {
|
|||
};
|
||||
|
||||
|
||||
#endif /* __jack_types_h__ */
|
||||
#endif /* JACK_TYPES_H */
|
||||
|
|
6
uuid.h
6
uuid.h
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __jack_uuid_h__
|
||||
#define __jack_uuid_h__
|
||||
#ifndef JACK_UUID_H
|
||||
#define JACK_UUID_H
|
||||
|
||||
#include <jack/types.h>
|
||||
|
||||
|
@ -45,4 +45,4 @@ extern int jack_uuid_empty (jack_uuid_t);
|
|||
} /* namespace */
|
||||
#endif
|
||||
|
||||
#endif /* __jack_uuid_h__ */
|
||||
#endif /* JACK_UUID_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __weakjack_h__
|
||||
#define __weakjack_h__
|
||||
#ifndef JACK_WEAKJACK_H
|
||||
#define JACK_WEAKJACK_H
|
||||
|
||||
/**
|
||||
* @defgroup WeakLinkage managing support for newer/older versions of JACK
|
||||
|
@ -121,4 +121,4 @@
|
|||
|
||||
/*@}*/
|
||||
|
||||
#endif /* weakjack */
|
||||
#endif /* JACK_WEAKJACK_H */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __weakmacros_h__
|
||||
#define __weakmacros_h__
|
||||
#ifndef JACK_WEAKMACROS_H
|
||||
#define JACK_WEAKMACROS_H
|
||||
|
||||
/*************************************************************
|
||||
* NOTE: JACK_WEAK_EXPORT ***MUST*** be used on every function
|
||||
|
@ -63,4 +63,4 @@
|
|||
#endif /* __GNUC__ */
|
||||
#endif
|
||||
|
||||
#endif /* __weakmacros_h__ */
|
||||
#endif /* JACK_WEAKMACROS_H */
|
||||
|
|
Loading…
Reference in New Issue