From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9552 Path: news.gmane.org!not-for-mail From: Jeroen Ketema Newsgroups: gmane.linux.lib.musl.general Subject: Using libcxx with musl's math.h Date: Thu, 10 Mar 2016 18:46:12 +0000 Message-ID: <56E1C0F4.8010106@codeplay.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457635603 32556 80.91.229.3 (10 Mar 2016 18:46:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 18:46:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9565-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 10 19:46:29 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ae5bI-0005lJ-Cb for gllmg-musl@m.gmane.org; Thu, 10 Mar 2016 19:46:20 +0100 Original-Received: (qmail 18238 invoked by uid 550); 10 Mar 2016 18:46:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18206 invoked from network); 10 Mar 2016 18:46:13 -0000 Authentication-Results: mail.codeplay.com (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=codeplay.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeplay.com; h= content-transfer-encoding:content-type:content-type:mime-version :user-agent:date:date:message-id:subject:subject:from:from:to; s=dkim; t=1457635565; x=1458499566; bh=tnsDlAvRRWIB1kjfKcjmPZgf 9ptAcK+B+3q13o2op3k=; b=HE2lPKY0rH0L2hQTPXp8e0cCmMMPfLSz3ZvXjk36 aaID2S0S8aJisJLuE0ax7dYGp3s1eGr1mJ+LnVakVod0mkCin45JJOYe6FO0Z0g7 g57LaP64aTIza3aJ/4wIH9m4G7E8QTS7848lee+F8ENeKK6WrdOMOJ7sQxm/T8+U j2pGbkwV1/ED3xpJhI8VA/h+KswT/gwvmBIPOzFtH6fxMgQC0qX+kHuNabX3UiBu Wfyd4y2+AyjHX72ZrJDneV7wiJUjVuOyHBsqGKHzq+ZCeNUrmnRoVGHJVJP2ZVqO G3TL0f+dHRxdSxLfmgcunpJAL3Bj/3zTMH5Ic0FbPuyjGw== X-Virus-Scanned: Debian amavisd-new at mail.codeplay.com X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-100 required=6.31 tests=[ALL_TRUSTED=-1] autolearn=ham autolearn_force=no User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Xref: news.gmane.org gmane.linux.lib.musl.general:9552 Archived-At: Hello, I'm trying to use libcxx's cmath header together with musl's math.h. However this currently fails, because libcxx expects certain symbols to be functions, while musl defines them as macros. For example (compiling with clang): cmath:309:9: error: no member named 'signbit' in the global namespace; did you mean '__signbit'? using ::signbit; ~~^ where signbit is a macro in musl, but where libcxx expects it to be a function. My question is: what would be the proper way to fix this? The main issue being of course that I cannot simply define signbit to be a function, because it requires a form of overloading. Thanks, Jeroen