[CDRIVER-500] Get rid of non-prefixed macros in libbson and libmongoc Created: 07/Jan/15  Updated: 19/Oct/16  Resolved: 27/Jan/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.2
Fix Version/s: 1.1.0

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


 Description   

libbson provides MAX, MIN and ABS macros. We really shouldn't as these occasionally collide with system provided defaults that are sometimes defined unconditionally.

Either way, it'll be better to namespace them and get away from bare macros



 Comments   
Comment by Githook User [ 27/Jan/15 ]

Author:

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

Message: CDRIVER-500 get rid of non-prefixed macros

Namespace MAX, MIN and ABS from libbson. None of those should have been
going out over public headers, so we roll that back.

This is a small source compatibility break.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/224a27ed025d7beba3f204bd7e37c19e07c37437

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