Browse Source

include the directory when naming .h files

tags/v0.2.0-alpha
李鸿章 5 years ago
parent
commit
adf11b3925
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      build/scripts/crc32.sh
  2. +1
    -1
      mindinsight/datavisual/utils/crc32/crc32.cc
  3. +1
    -1
      mindinsight/datavisual/utils/crc32/crc32.h

+ 1
- 1
build/scripts/crc32.sh View File

@@ -67,7 +67,7 @@ build_crc32() {

c++ -O2 -O3 -shared -std=c++11 -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 \
-Wno-maybe-uninitialized -Wno-unused-parameter -Wall -Wl,-z,relro,-z,now,-z,noexecstack \
-I"$THIRD_PARTY_DIR/securec/include" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \
-I"$THIRD_PARTY_DIR" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \
-o "$CRC32_SO_FILE" crc32.cc "$BUILDDIR/libsecurec.a"

if [ ! -f "$CRC32_SO_FILE" ]; then


+ 1
- 1
mindinsight/datavisual/utils/crc32/crc32.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "crc32.h"
#include "./crc32.h"


static const uint32_t crc_table_o32[CRC_TABLE_SIZE] = {


+ 1
- 1
mindinsight/datavisual/utils/crc32/crc32.h View File

@@ -20,7 +20,7 @@
#include <cstddef>
#include <cstdint>
#include "pybind11/pybind11.h"
#include "securec.h"
#include "securec/include/securec.h"

#define CRC_TABLE_SIZE 256
#define RIGHT_SHIFT 15


Loading…
Cancel
Save