[CDRIVER-2087] size_t redeclaration in VS2013 Created: 17/Mar/17  Updated: 03/May/17  Resolved: 07/Apr/17

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Improvement Priority: Minor - P4
Reporter: Alex Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows, visual studio 2013


Attachments: PNG File 28c4aa26-7fc6-11e6-8454-8b7cece4aeb2.png    

 Description   

I get redclaration error(found by resharper for c++) in visual studio 2013:
28c4aa26-7fc6-11e6-8454-8b7cece4aeb2.png
vs2013 have partial support of come c99 standard so looks like size_t is already defined in crtdefs.h

Here is fix: https://github.com/mongodb/libbson/pull/178/files



 Comments   
Comment by A. Jesse Jiryu Davis [ 07/Apr/17 ]

https://github.com/mongodb/libbson/pull/178/commits/78aa855239e9bba0852c761d4e8dba824cd27b90

Comment by A. Jesse Jiryu Davis [ 31/Mar/17 ]

PR accepted, I'll close this once I've seen a VS 2013 build in Evergreen and inspected for a new warning.

Generated at Wed Feb 07 21:14:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.