[SERVER-19848] Don't define 'trunc' in MozJS on windows Created: 10/Aug/15  Updated: 19/Sep/15  Resolved: 10/Aug/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.1.7
Fix Version/s: 3.1.7

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 7 08/10/15
Participants:
Linked BF Score: 0

 Description   

MSVC 2013 started offering 'trunc' from math.h

Our SpiderMonkey configuration does not set HAVE_TRUNC in configuration, so mozilla generates a trunc, which then conflicts with the math.h provided trunc.

We should fix that by setting HAVE_TRUNC in the windows configs



 Comments   
Comment by Githook User [ 10/Aug/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-19848 Don't define trunc in MozJS on win

MSVC 2013 started offering 'trunc' from math.h. Our SpiderMonkey
configuration does not set HAVE_TRUNC in configuration, so mozilla
generates a trunc, which then conflicts with the math.h provided trunc.

Fix that by setting HAVE_TRUNC in the windows configs.
Branch: master
https://github.com/mongodb/mongo/commit/9f85761a98318bd411d53ec6afa16378238e85d7

Generated at Thu Feb 08 03:52:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.