Skip to content

Commit

Permalink
Fixed|Unix|libdeng2: String comparison functions for C code
Browse files Browse the repository at this point in the history
On Unix platforms, always include <strings.h> for the platform's
string comparison functions when using the libdeng2 C API.
  • Loading branch information
skyjake committed Jul 30, 2012
1 parent 83a83cd commit a0c9f99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/libdeng2/include/de/libdeng2.h
Expand Up @@ -76,6 +76,14 @@

#include <assert.h>

/*
* When using the C API, the Qt string functions are not available, so we
* must use the platform-specific functions.
*/
#if defined(UNIX) && defined(DENG2_C_API_ONLY)
# include <strings.h> // strcasecmp etc.
#endif

/*
* The DENG2_PUBLIC macro is used for declaring exported symbols. It must be
* applied in all exported classes and functions. DEF files are not used for
Expand Down

0 comments on commit a0c9f99

Please sign in to comment.