This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
- From: "andreast at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Apr 2008 18:12:37 -0000
- Subject: [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
- References: <bug-35915-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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