OSDN Git Service

* configure.in: Don't define INSTALL_INFO.
[pf3gnuchains/gcc-fork.git] / libstdc++ / pure.c
1 #include <stdio.h>
2
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
8
9 #define MESSAGE "pure virtual method called\n"
10
11 void
12 __pure_virtual (void)
13 {
14   write (2, MESSAGE, sizeof (MESSAGE) - 1);
15   __terminate ();
16 }