Skip to content

Commit

Permalink
Improve C++ code
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <[email protected]>
  • Loading branch information
bensuperpc committed Nov 17, 2021
2 parents a868d8e + ab45425 commit fb20efe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 447 deletions.
7 changes: 7 additions & 0 deletions include/crc32/crc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#ifndef CRC32_H_INCLUDED
#define CRC32_H_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif
// uint8_t, uint32_t, int32_t
#include <stdint.h>

Expand Down Expand Up @@ -90,4 +93,8 @@ CRC32_EXPORT uint32_t crc32_16bytes_prefetch(const void* data,
const uint32_t,
size_t prefetchAhead);
#endif

#ifdef __cplusplus
}
#endif
#endif // CRC32_H_INCLUDED
1 change: 1 addition & 0 deletions include/crc32/crc32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
extern "C" {
#include <stdint.h>

#include "crc32/crc32.h"
#include "crc32/crc32_var.h"
}
// size_t
Expand Down
Loading

0 comments on commit fb20efe

Please sign in to comment.