diff --git a/.gitattributes b/.gitattributes
index b41843a607d4cd84549731ed6344282485ca1b91..cd3031dbd117edbd9205e684c87e7cc6fe58183f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -17,6 +17,7 @@ lib/crt32.s -text
 lib/crt64.s -text
 lib/tiny_linker_script -text
 libc/Makefile.in -text
+libc/include/assert.h -text
 libc/include/cgc.h -text
 libc/include/itoa.h -text
 libc/include/itox.h -text
diff --git a/libc/include/assert.h b/libc/include/assert.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e04a0ec8f2cd912a9ee14c6497a9d29b0d06f40
--- /dev/null
+++ b/libc/include/assert.h
@@ -0,0 +1,14 @@
+
+
+#ifndef ASSERT_H
+#define ASSERT_H
+
+#ifndef assert
+#ifdef CGC
+#define assert(a) ( (a) ? 0 : _terminate(199))
+#else
+#define assert(a) ( (a) ? 0 : (*(int*)0) )
+#endif
+#endif
+
+#endif ASSERT_H