Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
04be5427
Commit
04be5427
authored
Mar 01, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of code cleanup
parent
0df6cc2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
test_for_odr_violations.cpp
dlib/all/test_for_odr_violations.cpp
+1
-1
test_for_odr_violations.h
dlib/all/test_for_odr_violations.h
+1
-1
config.h
dlib/config.h
+0
-2
No files found.
dlib/all/test_for_odr_violations.cpp
View file @
04be5427
...
...
@@ -28,7 +28,7 @@ extern "C"
// MIXING THEM WITH THE SOURCE FROM GITHUB. USE CMAKE'S INSTALL SCRIPTS TO INSTALL DLIB.
// Or even better, don't install dlib at all and instead build your program as shown in
// examples/CMakeLists.txt
#if
def DLIB_NOT_CONFIGURED
#if
defined(DLIB_NOT_CONFIGURED) && !defined(DLIB__CMAKE_GENERATED_A_CONFIG_H_FILE)
int
USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2
;
#endif
}
...
...
dlib/all/test_for_odr_violations.h
View file @
04be5427
...
...
@@ -38,7 +38,7 @@ extern "C"
// MIXING THEM WITH THE SOURCE FROM GITHUB. USE CMAKE'S INSTALL SCRIPTS TO INSTALL DLIB.
// Or even better, don't install dlib at all and instead build your program as shown in
// examples/CMakeLists.txt
#if
def DLIB_NOT_CONFIGURED
#if
defined(DLIB_NOT_CONFIGURED) && !defined(DLIB__CMAKE_GENERATED_A_CONFIG_H_FILE)
extern
int
USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2
;
inline
int
dlib_check_consistent_config_h_usage
()
{
USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2
=
0
;
return
0
;
}
#else
...
...
dlib/config.h
View file @
04be5427
...
...
@@ -27,7 +27,5 @@
// Define this so the code in dlib/all/test_for_odr_violations.h can detect ODR violations
// related to users doing bad things with config.h
#ifndef DLIB__CMAKE_GENERATED_A_CONFIG_H_FILE
#define DLIB_NOT_CONFIGURED
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment