shithub: scc

Download patch

ref: 596504739eeeb3e90ba9f7615b1a9c81b2ed4326
parent: 221526b92844eaea8c35fd64ca855cde3e9a7a96
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jun 13 14:38:53 EDT 2020

libc: Put an explicit error output in float.h

Current float.h is only a placeholder. As it is empty,
it can produce unkonwn errors if some program uses it,
so it is better to abort the compilation with a clear
error.

--- a/include/float.h
+++ b/include/float.h
@@ -1,1 +1,4 @@
-/* TODO: Placeholder for compatibility with libraries that need to include it */
+#ifndef _FLOAT_H
+#define _FLOAT_H
+#error float.h is not supported yet
+#endif