Skip to content

Commit

Permalink
Simplify memset fix
Browse files Browse the repository at this point in the history
Instead of including `<cstring>` and `<string.h>` separately, include `<string.h>` on all platforms.
  • Loading branch information
kadir014 committed Jan 14, 2024
1 parent 7b44947 commit c081579
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
6 changes: 1 addition & 5 deletions example/ParallelSum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
#include <stdio.h>
#include <inttypes.h>
#include <assert.h>
#include <cstring>

#ifndef _WIN32
#include <string.h>
#endif
#include <string.h>

using namespace enki;

Expand Down
6 changes: 1 addition & 5 deletions example/TaskOverhead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
#include <inttypes.h>
#undef __STDC_FORMAT_MACROS
#include <assert.h>
#include <cstring>

#ifndef _WIN32
#include <string.h>
#endif
#include <string.h>

using namespace enki;

Expand Down
5 changes: 1 addition & 4 deletions example/TaskThroughput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
#include <inttypes.h>
#include <math.h>
#include <cstring>

#ifndef _WIN32
#include <string.h>
#endif
#include <string.h>

using namespace enki;

Expand Down
5 changes: 1 addition & 4 deletions example/TestAll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
#include <vector>
#include <algorithm>
#include <cstring>

#ifndef _WIN32
#include <string.h>
#endif
#include <string.h>

using namespace enki;

Expand Down

0 comments on commit c081579

Please sign in to comment.