<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:38 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-2245] Macro redefinition of printf integer formats for VS2015</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2245</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I notice the following build warnings when compiling the PHPC 1.3.0 for PHP 7.x in Visual Studio 2015 (x64 and x86):&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;c:\php-sdk\phpdev\vc14\x64\pecl\mongodb\src\libbson\src\bson\bson-compat.h(115): warning C4005: &apos;PRIi32&apos;: macro redefinition&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(130): note: see previous definition of &apos;PRIi32&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;c:\php-sdk\phpdev\vc14\x64\pecl\mongodb\src\libbson\src\bson\bson-compat.h(118): warning C4005: &apos;PRIi64&apos;: macro redefinition&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(131): note: see previous definition of &apos;PRIi64&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;c:\php-sdk\phpdev\vc14\x64\pecl\mongodb\src\libbson\src\bson\bson-compat.h(119): warning C4005: &apos;PRId64&apos;: macro redefinition&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(112): note: see previous definition of &apos;PRId64&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;c:\php-sdk\phpdev\vc14\x64\pecl\mongodb\src\libbson\src\bson\bson-compat.h(120): warning C4005: &apos;PRIu64&apos;: macro redefinition&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(169): note: see previous definition of &apos;PRIu64&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Would it be best to wrap these definitions in conditionals?&lt;/p&gt;</description>
                <environment>Windows 7, Visual Studio 2015</environment>
        <key id="416287">CDRIVER-2245</key>
            <summary>Macro redefinition of printf integer formats for VS2015</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Mon, 14 Aug 2017 15:47:14 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:31 +0000</updated>
                            <resolved>Thu, 12 Oct 2017 19:53:57 +0000</resolved>
                                    <version>1.7.0</version>
                                    <fixVersion>1.9.0</fixVersion>
                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3465457" author="JIRAUSER1257415" created="Tue, 27 Oct 2020 20:59:41 +0000"  >&lt;p&gt;Hi @Kevin Albertson&#160; I think there may be some confusion between inttypes.h and stdint.h.&#160; The bson-compat.h I see #includes &amp;lt;stdint.h&amp;gt; but not &amp;lt;inttypes.h&amp;gt;.&#160; In the Microsoft Windows dev kits, the PRI symbols are defined in &amp;lt;inttypes.h&amp;gt;.&lt;/p&gt;</comment>
                            <comment id="3465379" author="kevin.albertson" created="Tue, 27 Oct 2020 20:12:21 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=scottw%40attinc.com&quot; class=&quot;user-hover&quot; rel=&quot;scottw@attinc.com&quot;&gt;scottw@attinc.com&lt;/a&gt;, thank you for bringing that to our attention. I filed a new ticket, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3810&quot; title=&quot;Including bson-compat.h before inttypes.h may result in duplicate constant definitions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3810&quot;&gt;&lt;del&gt;CDRIVER-3810&lt;/del&gt;&lt;/a&gt; to investigate. If possible, can you comment on&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3810&quot; title=&quot;Including bson-compat.h before inttypes.h may result in duplicate constant definitions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3810&quot;&gt;&lt;del&gt;CDRIVER-3810&lt;/del&gt;&lt;/a&gt; and include the system you are experiencing these warnings on? At least, looking at inttypes.h on my development machine, it includes checks for whether those constants are defined, so I do not get a duplicate definition warning.&lt;/p&gt;</comment>
                            <comment id="3463998" author="JIRAUSER1257415" created="Mon, 26 Oct 2020 22:36:54 +0000"  >&lt;p&gt;Some of the constants defined in bson-compat.h overlap those #defined in inttypes.h.&#160; Wrapping them in conditionals in bson-compat.h helps, however you will still get errors if bson.h (which #includes bson-compat.h) is #included before inttypes.h.&#160; This is because inttypes.h will not yet have #defined the constants, so bson-compat.h will #define them, then (if #included) inttypes.h will #define them again.&lt;/p&gt;</comment>
                            <comment id="1697647" author="xgen-internal-githook" created="Thu, 12 Oct 2017 19:53:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.eric.albertson@gmail.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: Merge pull request #204 from kevinAlbs/cdriver2245&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2245&quot; title=&quot;Macro redefinition of printf integer formats for VS2015&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2245&quot;&gt;&lt;del&gt;CDRIVER-2245&lt;/del&gt;&lt;/a&gt; Add conditionals around printf defines&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/ed989496749e79f132ebdab1dab4edb1dda2822f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/ed989496749e79f132ebdab1dab4edb1dda2822f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1697646" author="xgen-internal-githook" created="Thu, 12 Oct 2017 19:53:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2245&quot; title=&quot;Macro redefinition of printf integer formats for VS2015&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2245&quot;&gt;&lt;del&gt;CDRIVER-2245&lt;/del&gt;&lt;/a&gt; Add conditionals around printf defines&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/e4b42a76ae4c127aeaea4c706b54c101ca9a8360&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/e4b42a76ae4c127aeaea4c706b54c101ca9a8360&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="275184">CDRIVER-1178</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="276810">CDRIVER-1191</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2201</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht4plz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>