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

implicit declaration of function ‘strcasecmp’

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c: In function ‘auto_ping’:
      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c:775:4: error: implicit declaration of function ‘strcasecmp’ [-Werror=implicit-function-declaration]
      [2016/11/16 17:03:52.703]     if (!request->is_command || strcasecmp (request->command_name, "ping")) {
      [2016/11/16 17:03:52.703]     ^
      

      the mongoc-util-private.h has helper for windows for strcasecmp, but its not sufficient to just include that header since it doesn't currently include strings.h

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

              Created:
              Updated:
              Resolved: