summaryrefslogtreecommitdiff
path: root/firmware/include/vboot_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/vboot_api.h')
-rw-r--r--firmware/include/vboot_api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index d1c91c33..049ec90f 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -39,7 +39,9 @@ typedef uint32_t VbError_t;
/*
* Define test_mockable for mocking functions.
*/
+#ifndef test_mockable
#define test_mockable __attribute__((weak))
+#endif
/*
* Predefined error numbers. Success is 0. Errors are non-zero, but differ