Only create gcc/configargs.h if gcc build directory is present
[official-gcc.git] / libstdc++ / pure.c
blobabaed59177fd851c5a1a1fc4ea97be15ed3cad7b
1 #include <stdio.h>
3 #ifdef __GNU_LIBRARY__
4 /* Avoid forcing the library's meaning of `write' on the user program
5 by using the "internal" name (for use within the library) */
6 #define write(fd, buf, n) __write((fd), (buf), (n))
7 #endif
9 #define MESSAGE "pure virtual method called\n"
11 void
12 __pure_virtual (void)
14 write (2, MESSAGE, sizeof (MESSAGE) - 1);
15 __terminate ();