[CDRIVER-1927] implicit declaration of function ‘strcasecmp’ Created: 17/Nov/16  Updated: 17/Nov/16  Resolved: 17/Nov/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.5.0
Fix Version/s: 1.6.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

[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



 Comments   
Comment by Hannes Magnusson [ 17/Nov/16 ]

https://github.com/mongodb/mongo-c-driver/commit/56c4e044582f4b0893b6d3a9aad20e76954ceadd

Generated at Wed Feb 07 21:13:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.