Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Willers
KWSys
Commits
441dd494
Commit
441dd494
authored
4 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
Drop unused checks for 'long long' and '__int64'
parent
a0bd892c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+0
-41
0 additions, 41 deletions
CMakeLists.txt
kwsysPlatformTestsCXX.cxx
+0
-48
0 additions, 48 deletions
kwsysPlatformTestsCXX.cxx
with
0 additions
and
89 deletions
CMakeLists.txt
+
0
−
41
View file @
441dd494
...
@@ -359,39 +359,6 @@ endif()
...
@@ -359,39 +359,6 @@ endif()
# capabilities and parent project's request. Enforce 0/1 as only
# capabilities and parent project's request. Enforce 0/1 as only
# possible values for configuration into Configure.hxx.
# possible values for configuration into Configure.hxx.
# Check existence and uniqueness of long long and __int64.
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_CXX_HAS_LONG_LONG
"Checking whether C++ compiler has 'long long'"
DIRECT
)
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_CXX_HAS___INT64
"Checking whether C++ compiler has '__int64'"
DIRECT
)
if
(
KWSYS_CXX_HAS___INT64
)
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_CXX_SAME_LONG_AND___INT64
"Checking whether long and __int64 are the same type"
DIRECT
)
if
(
KWSYS_CXX_HAS_LONG_LONG
)
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_CXX_SAME_LONG_LONG_AND___INT64
"Checking whether long long and __int64 are the same type"
DIRECT
)
endif
()
endif
()
# Enable the "long long" type if it is available. It is standard in
# C99 and C++03 but not in earlier standards.
if
(
KWSYS_CXX_HAS_LONG_LONG
)
set
(
KWSYS_USE_LONG_LONG 1
)
else
()
set
(
KWSYS_USE_LONG_LONG 0
)
endif
()
# Enable the "__int64" type if it is available and unique. It is not
# standard.
set
(
KWSYS_USE___INT64 0
)
if
(
KWSYS_CXX_HAS___INT64
)
if
(
NOT KWSYS_CXX_SAME_LONG_AND___INT64
)
if
(
NOT KWSYS_CXX_SAME_LONG_LONG_AND___INT64
)
set
(
KWSYS_USE___INT64 1
)
endif
()
endif
()
endif
()
if
(
KWSYS_USE_Encoding
)
if
(
KWSYS_USE_Encoding
)
# Look for type size helper macros.
# Look for type size helper macros.
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_STL_HAS_WSTRING
KWSYS_PLATFORM_CXX_TEST
(
KWSYS_STL_HAS_WSTRING
...
@@ -623,14 +590,6 @@ if(KWSYS_USE_SystemInformation)
...
@@ -623,14 +590,6 @@ if(KWSYS_USE_SystemInformation)
endif
()
endif
()
endif
()
endif
()
endif
()
endif
()
if
(
KWSYS_USE___INT64
)
set_property
(
SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
COMPILE_DEFINITIONS KWSYS_USE___INT64=1
)
endif
()
if
(
KWSYS_USE_LONG_LONG
)
set_property
(
SOURCE SystemInformation.cxx testSystemInformation.cxx APPEND PROPERTY
COMPILE_DEFINITIONS KWSYS_USE_LONG_LONG=1
)
endif
()
if
(
KWSYS_BUILD_SHARED
)
if
(
KWSYS_BUILD_SHARED
)
set_property
(
SOURCE SystemInformation.cxx APPEND PROPERTY
set_property
(
SOURCE SystemInformation.cxx APPEND PROPERTY
COMPILE_DEFINITIONS KWSYS_BUILD_SHARED=1
)
COMPILE_DEFINITIONS KWSYS_BUILD_SHARED=1
)
...
...
This diff is collapsed.
Click to expand it.
kwsysPlatformTestsCXX.cxx
+
0
−
48
View file @
441dd494
...
@@ -8,30 +8,6 @@ int main()
...
@@ -8,30 +8,6 @@ int main()
}
}
#endif
#endif
#ifdef TEST_KWSYS_CXX_HAS_LONG_LONG
long
long
f
(
long
long
n
)
{
return
n
;
}
int
main
()
{
long
long
n
=
0
;
return
static_cast
<
int
>
(
f
(
n
));
}
#endif
#ifdef TEST_KWSYS_CXX_HAS___INT64
__int64
f
(
__int64
n
)
{
return
n
;
}
int
main
()
{
__int64
n
=
0
;
return
static_cast
<
int
>
(
f
(
n
));
}
#endif
#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
# include <sys/types.h>
# include <sys/types.h>
...
@@ -60,30 +36,6 @@ int main()
...
@@ -60,30 +36,6 @@ int main()
}
}
#endif
#endif
#ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64
void
function
(
long
**
)
{
}
int
main
()
{
__int64
**
p
=
0
;
function
(
p
);
return
0
;
}
#endif
#ifdef TEST_KWSYS_CXX_SAME_LONG_LONG_AND___INT64
void
function
(
long
long
**
)
{
}
int
main
()
{
__int64
**
p
=
0
;
function
(
p
);
return
0
;
}
#endif
#ifdef TEST_KWSYS_CXX_HAS_SETENV
#ifdef TEST_KWSYS_CXX_HAS_SETENV
# include <stdlib.h>
# include <stdlib.h>
int
main
()
int
main
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment