Declare __cdecl as calling convention on Windows

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: Build, libbson, libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Hannes Magnusson (Inactive)
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: