Skip to content

Commit

Permalink
Fix C++17 build with Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Aug 16, 2021
1 parent 7b89964 commit 152251a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion memory/build/mozmemory_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include <string.h>
#include "mozmemory_wrap.h"
#include "mozilla/Types.h"

Expand Down
7 changes: 7 additions & 0 deletions memory/build/mozmemory_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
# define IMPL_MFBT
#endif

#ifdef __cplusplus
# include <cstdlib>
# include <cstring>
#else
# include <stdlib.h>
# include <string.h>
#endif
#include "mozilla/Types.h"

#ifndef MOZ_EXTERN_C
Expand Down

0 comments on commit 152251a

Please sign in to comment.