Browse Source

Add reference to sqlite3, use _strdup()

pull/8/head
Thomas 3 months ago
parent
commit
bbb2dd7b00
3 changed files with 109 additions and 1 deletions
  1. +3
    -0
      build-windows/libpEpAdapter.vcxproj
  2. +105
    -0
      build-windows/libpEpAdapter.vcxproj.filters
  3. +1
    -1
      src/message_cache.cc

+ 3
- 0
build-windows/libpEpAdapter.vcxproj View File

@ -60,6 +60,7 @@
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_LIB;_EXPORT_PEP_ENGINE_DLL;_CRT_SECURE_NO_WARNINGS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<EnablePREfast>false</EnablePREfast>
<AdditionalIncludeDirectories>$(ProjectDir)src;</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -75,6 +76,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;_LIB;_EXPORT_PEP_ENGINE_DLL;_CRT_SECURE_NO_WARNINGS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<EnablePREfast>false</EnablePREfast>
<AdditionalIncludeDirectories>$(ProjectDir)src;</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -87,6 +89,7 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\*.cc" />
<ClCompile Include="..\..\pEpEngine\src\sqlite3.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\*.hh" />


+ 105
- 0
build-windows/libpEpAdapter.vcxproj.filters View File

@ -165,6 +165,54 @@
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\*.hh">
@ -341,5 +389,62 @@
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>

+ 1
- 1
src/message_cache.cc View File

@ -96,7 +96,7 @@ namespace pEp {
if (!src)
return nullptr;
char *dst = ::strdup(src);
char *dst = ::_strdup(src);
assert(dst);
if (!dst)
throw std::bad_alloc();


Loading…
Cancel
Save