History

various: reduce the include scope of some public headers

Kacper Michajłow committed 1 year ago

Commit 77313f71 parent b848ffa16 files · +30 −24Browse files

Showing the changes to test (3 of 16 files). Show all

Unified · Split

3 files
  1. test/json.c +2 −0
  2. test/libmpv_common.h +2 −1
  3. test/libmpv_encode.c +2 −1
test/json.c+2−0
@@ -1,3 +1,5 @@
1#include <libmpv/client.h>
2
1#include "misc/json.h"3#include "misc/json.h"
2#include "misc/node.h"4#include "misc/node.h"
3#include "test_utils.h"5#include "test_utils.h"
test/libmpv_common.h+2−1
@@ -16,13 +16,14 @@ · 15 unmodified lines
16 */16 */
17 17
18#include <inttypes.h>18#include <inttypes.h>
19#include <libmpv/client.h>
20#include <stdarg.h>19#include <stdarg.h>
21#include <stdbool.h>20#include <stdbool.h>
22#include <stdio.h>21#include <stdio.h>
23#include <stdlib.h>22#include <stdlib.h>
24#include <string.h>23#include <string.h>
25 24
25#include <libmpv/client.h>
26
26// Stolen from osdep/compiler.h27// Stolen from osdep/compiler.h
27#ifdef __GNUC__28#ifdef __GNUC__
28#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))29#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))
test/libmpv_encode.c+2−1
@@ -16,7 +16,6 @@ · 15 unmodified lines
16 */16 */
17 17
18#include <inttypes.h>18#include <inttypes.h>
19#include <libmpv/client.h>
20#include <stdarg.h>19#include <stdarg.h>
21#include <stdio.h>20#include <stdio.h>
22#include <stdlib.h>21#include <stdlib.h>
@@ -29,6 +28,8 @@ · 6 unmodified lines
29#include <unistd.h>28#include <unistd.h>
30#endif29#endif
31 30
31#include <libmpv/client.h>
32
32// Stolen from osdep/compiler.h33// Stolen from osdep/compiler.h
33#ifdef __GNUC__34#ifdef __GNUC__
34#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))35#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t