This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file



------- Comment #6 from andreast at gcc dot gnu dot org  2008-04-16 18:12 -------
I have a patch in testing. Looks ok so far.
One question, is it ok to place gstdint.h into the include directory? And not
like others in the toplevel build dir?

Index: configure.ac
===================================================================
--- configure.ac        (revision 134344)
+++ configure.ac        (working copy)
@@ -147,6 +147,8 @@
   GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
   GLIBCXX_CHECK_STDLIB_SUPPORT

+  GCC_HEADER_STDINT(include/gstdint.h) 
+
   # For showmanyc_helper().
   AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
   GLIBCXX_CHECK_POLL
Index: src/atomic.cc
===================================================================
--- src/atomic.cc       (revision 134344)
+++ src/atomic.cc       (working copy)
@@ -28,7 +28,7 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.

-#include <stdint.h>
+#include "gstdint.h"
 #include <cstdatomic>

 #define LOGSIZE 4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35915


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]