Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: ports/xaos/nacl-ui-driver/ui_nacl.h

Issue 1491453003: Fix Xaos port (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/xaos/nacl-ui-driver/ppapi.c ('k') | ports/xaos/nacl-ui-driver/ui_nacl.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/xaos/nacl-ui-driver/ui_nacl.h
diff --git a/ports/xaos/nacl-ui-driver/ui_nacl.h b/ports/xaos/nacl-ui-driver/ui_nacl.h
index 8b0d9b8ef2716396fef35fd9ef2471ae3f35aa3c..46703fe1faa9bc35862a4b5d2bfad9f028c82f39 100644
--- a/ports/xaos/nacl-ui-driver/ui_nacl.h
+++ b/ports/xaos/nacl-ui-driver/ui_nacl.h
@@ -30,13 +30,15 @@ struct PpapiEvent {
/* get next ppapi event to process, may block if wait == 1 */
struct PpapiEvent* GetEvent(int wait);
-/* these headers need an sdk update before they can be used */
-#if 0
-#include <nacl/nacl_check.h>
-#include <nacl/nacl_log.h>
-#else
-#define CHECK(cond) do { if (!(cond)) {puts("ABORT: " #cond "\n"); abort();}} while(0)
-#define NaClLog(lev, ...) fprintf(stderr, __VA_ARGS__)
-#endif
+#define CHECK(cond) do { \
+ if (!(cond)) { fputs("ABORT: " #cond "\n", stderr); abort(); } \
+} while(0)
+
+#define LOG_TRACE 3
+#define LOG_INFO 2
+#define LOG_ERROR 1
+#define LOG_FATAL 0
+
+void NaClLog(int level, char* fmt, ...);
#endif /* UI_NACL_H */
« no previous file with comments | « ports/xaos/nacl-ui-driver/ppapi.c ('k') | ports/xaos/nacl-ui-driver/ui_nacl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698