Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build with libstdc++
libstdc++ doesn't include <cstring> inside of <string>, unlike libc++.
  • Loading branch information
kwolekr committed May 19, 2015
1 parent 6c5a696 commit 43702ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objdef.cpp
Expand Up @@ -17,9 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include <strings.h>
#include "objdef.h"
#include "util/numeric.h"
#include "debug.h"
#include "porting.h"
#include "log.h"
#include "gamedef.h"

Expand Down

1 comment on commit 43702ec

@ShadowNinja
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<strings.h> != <cstring>
strings.h is mostly deprecated; the only non-deprecated functions are str(n)casecmp and ffs (find least-significant 1 bit).

Please sign in to comment.