Skip to content

Commit

Permalink
Use <cstring> instead of <string.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Feb 2, 2024
1 parent f983cf7 commit 24d3d3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/demos/monkey.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <vector>
#include <iostream>

#include <string.h>
#include <cstring>

#include "../ammonite/ammonite.hpp"

Expand Down Expand Up @@ -46,7 +45,7 @@ namespace monkeyDemo {

//Sum vertices and load texture if given
vertexCount += ammonite::models::getVertexCount(loadedModelIds[i]);
if (strcmp(models[i][1], "")) {
if (std::strcmp(models[i][1], "")) {
ammonite::models::applyTexture(loadedModelIds[i], AMMONITE_DIFFUSE_TEXTURE, models[i][1], true, &success);
}

Expand Down

0 comments on commit 24d3d3b

Please sign in to comment.