Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
04be5427
Commit
04be5427
authored
Feb 28, 2018
by
Davis King
Browse files
A bit of code cleanup
parent
0df6cc2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
dlib/all/test_for_odr_violations.cpp
dlib/all/test_for_odr_violations.cpp
+1
-1
dlib/all/test_for_odr_violations.h
dlib/all/test_for_odr_violations.h
+1
-1
dlib/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
#ifdef
DLIB_NOT_CONFIGURED
#if
def
ined(
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
#ifdef
DLIB_NOT_CONFIGURED
#if
def
ined(
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