Skip to content

Commit 9a65e98

Browse files
committed
Fix build issues.
1 parent e3e8a08 commit 9a65e98

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

analytics/generate_windows_stubs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def generate_function_pointers(dll_file_path, header_file_path, output_h_path, o
159159
f.write(f"// Generated from {os.path.basename(header_file_path)} by {os.path.basename(sys.argv[0])}\n\n")
160160
f.write(f"#ifndef {header_guard}\n")
161161
f.write(f"#define {header_guard}\n\n")
162+
f.write(f"#define ANALYTICS_API // filter out from header copy\n\n")
162163
f.write("#include <stdbool.h> // needed for bool type in pure C\n\n")
163164

164165
f.write("// --- Copied from original header ---\n")

analytics/src/analytics_desktop.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828

2929
#if defined(_WIN32)
3030
#include <windows.h>
31-
32-
// analytics_windows.h is not strictly needed if only using C API via
33-
// analytics_desktop_dynamic.h #include "analytics/src/analytics_windows.h"
31+
#include "analytics_windows.h"
3432
#endif // defined(_WIN32)
3533

3634
namespace firebase {

analytics/src/analytics_desktop_dynamic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
#include <stddef.h>
2020

21-
// A nice big chunk of stub memory that can be returned by stubbed Create
22-
// methods.
21+
// A nice big chunk of stub memory that can be returned by stubbed Create methods.
2322
static char g_stub_memory[256] = {0};
2423

2524
// clang-format off

analytics/src/analytics_desktop_dynamic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef FIREBASE_ANALYTICS_SRC_WINDOWS_ANALYTICS_DESKTOP_DYNAMIC_H_
1818
#define FIREBASE_ANALYTICS_SRC_WINDOWS_ANALYTICS_DESKTOP_DYNAMIC_H_
1919

20+
#define ANALYTICS_API // filter out from header copy
21+
2022
#include <stdbool.h> // needed for bool type in pure C
2123

2224
// --- Copied from original header ---

0 commit comments

Comments
 (0)