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+
13 #include "misc/json.h"
24 #include "misc/node.h"
35 #include "test_utils.h"
test/libmpv_common.h+2−1
@@ -16,13 +16,14 @@ · 15 unmodified lines
1616 */
1717
1818 #include <inttypes.h>
19−#include <libmpv/client.h>
2019 #include <stdarg.h>
2120 #include <stdbool.h>
2221 #include <stdio.h>
2322 #include <stdlib.h>
2423 #include <string.h>
2524
25+#include <libmpv/client.h>
26+
2627 // Stolen from osdep/compiler.h
2728 #ifdef __GNUC__
2829 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format(printf, a1, a2)))
test/libmpv_encode.c+2−1
@@ -16,7 +16,6 @@ · 15 unmodified lines
1616 */
1717
1818 #include <inttypes.h>
19−#include <libmpv/client.h>
2019 #include <stdarg.h>
2120 #include <stdio.h>
2221 #include <stdlib.h>
@@ -29,6 +28,8 @@ · 6 unmodified lines
2928 #include <unistd.h>
3029 #endif
3130
31+#include <libmpv/client.h>
32+
3233 // Stolen from osdep/compiler.h
3334 #ifdef __GNUC__
3435 #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