mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Make error_t an int in C++
Making error_t defined to enum __error_t_codes conveniently makes the debugger print symbolic values, but in C++ int is not interoperable with enum __error_t_codes, leading to C++ application build issues, so let's revert error_t to int in C++.
This commit is contained in:
parent
3fcfb76bab
commit
e3ae80adbc
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@
|
|||
#ifndef __error_t_defined
|
||||
# define __error_t_defined 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
/* Unfortunately, in C++ int and enum __error_t_codes are not
|
||||
interoperable... */
|
||||
typedef int error_t;
|
||||
#else
|
||||
typedef enum __error_t_codes error_t;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue