File: pps-macros.h

package info (click to toggle)
papers 49.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 21,044 kB
  • sloc: ansic: 37,728; sh: 197; xml: 127; makefile: 113
file content (27 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: LGPL-2.1-or-later
/*
 * Copyright © 2012 Christian Persch
 */

#pragma once

#if defined(PPS_DISABLE_DEPRECATION_WARNINGS)
#define PPS_DEPRECATED
#define PPS_DEPRECATED_FOR(f)
#define PPS_UNAVAILABLE(maj, min)
#else
#define PPS_DEPRECATED G_DEPRECATED
#define PPS_DEPRECATED_FOR(f) G_DEPRECATED_FOR (f)
#define PPS_UNAVAILABLE(maj, min) G_UNAVAILABLE (maj, min)
#endif

#ifdef __has_attribute
#if __has_attribute(__visibility__)
#define PPS_PUBLIC __attribute__ ((__visibility__ ("default"))) extern
#endif
#endif
#ifndef PPS_PUBLIC
#define PPS_PUBLIC extern
#endif

#define PPS_PRIVATE PPS_PUBLIC