Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1577

Declare __cdecl as calling convention on Windows

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.0
    • None
    • Build, libbson, libmongoc
    • None

    Description

      This doesn't seem to impact other c apps on windows using mongoc, but when compiling c++ then the user may be tempted to change the calling convention:
      https://msdn.microsoft.com/en-us/library/zkwh89ks.aspx

      Unless we specifically declare which calling convention our API expects, things might get muddy.

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: