summaryrefslogtreecommitdiff
path: root/tests/projects/c/shared_library/src
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-18 00:55:41 +0800
committerruki <[email protected]>2021-02-18 00:55:41 +0800
commit7398de24ff14782768cbd72882aa18ebd36717ea (patch)
treec7b5c1126c8d1e8927fef68155c3ddf524e7eb12 /tests/projects/c/shared_library/src
parent46e0f6a1adda408052ba5b87c244cedaae5f1d00 (diff)
add export_all rule
Diffstat (limited to 'tests/projects/c/shared_library/src')
-rw-r--r--tests/projects/c/shared_library/src/foo.c (renamed from tests/projects/c/shared_library/src/interface.c)2
-rw-r--r--tests/projects/c/shared_library/src/foo.h (renamed from tests/projects/c/shared_library/src/interface.h)7
-rw-r--r--tests/projects/c/shared_library/src/test.c2
3 files changed, 2 insertions, 9 deletions
diff --git a/tests/projects/c/shared_library/src/interface.c b/tests/projects/c/shared_library/src/foo.c
index 598d07560..08054d059 100644
--- a/tests/projects/c/shared_library/src/interface.c
+++ b/tests/projects/c/shared_library/src/foo.c
@@ -1,4 +1,4 @@
-#include "interface.h"
+#include "foo.h"
int add(int a, int b)
{
diff --git a/tests/projects/c/shared_library/src/interface.h b/tests/projects/c/shared_library/src/foo.h
index ef24ba3ce..073fb68d7 100644
--- a/tests/projects/c/shared_library/src/interface.h
+++ b/tests/projects/c/shared_library/src/foo.h
@@ -10,13 +10,6 @@ extern "C" {
# define __export
#endif
-/*! calculate add(a, b)
- *
- * @param a the first argument
- * @param b the second argument
- *
- * @return the result
- */
__export int add(int a, int b);
#ifdef __cplusplus
diff --git a/tests/projects/c/shared_library/src/test.c b/tests/projects/c/shared_library/src/test.c
index 9505a2f75..1e52e7a81 100644
--- a/tests/projects/c/shared_library/src/test.c
+++ b/tests/projects/c/shared_library/src/test.c
@@ -1,4 +1,4 @@
-#include "interface.h"
+#include "foo.h"
#include <stdio.h>
int main(int argc, char** argv)