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

Declare __cdecl as calling convention on Windows

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: Build, libbson, libmongoc
    • None

      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.

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

              Created:
              Updated:
              Resolved: