From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6382 invoked by alias); 28 Dec 2012 08:05:37 -0000 Received: (qmail 6368 invoked by uid 22791); 28 Dec 2012 08:05:36 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ee0-f46.google.com (HELO mail-ee0-f46.google.com) (74.125.83.46) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Dec 2012 08:05:31 +0000 Received: by mail-ee0-f46.google.com with SMTP id e53so4978665eek.19 for ; Fri, 28 Dec 2012 00:05:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.194.195 with SMTP id m43mr84722958een.44.1356681929778; Fri, 28 Dec 2012 00:05:29 -0800 (PST) Received: by 10.14.119.67 with HTTP; Fri, 28 Dec 2012 00:05:29 -0800 (PST) Date: Fri, 28 Dec 2012 08:05:00 -0000 Message-ID: Subject: Some questions about adding mingw support for std::random_device From: niXman To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00142.txt.bz2 Hi, I want to add mingw support for std::random_device and I have a few questions. 1) When configuring libstdc++, the GLIBCXX_CHECK_RANDOM_TR1 test passes successfully, because MSYS is used. But the compiler and the programs created by it can not use '/dev/urandom' || '/dev/random', because they do not use MSYS-runtime. The first question is, do I need to change the GLIBCXX_CHECK_RANDOM_TR1 test itself so that for mingw it would be not successful, or I have to add in the file 'libstdc++-v3/include/bits/random.h' an additional checking by the preprocessor and ignore the value of _GLIBCXX_USE_RANDOM_TR1 macro? I think the first variant is more logical because the second variant seems to be some cleaning up. 2) Since the I'm very new in autotools, tell me please, how should I change the GLIBCXX_CHECK_RANDOM_TR1 test? Thanks. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___________________________________________________ Another online IDE: http://liveworkspace.org/