Skip to content

ulalaca: Don't redefine char16_t and char32_t#3738

Merged
matt335672 merged 1 commit intoneutrinolabs:develfrom
matt335672:fix_ulalaca_char16_t
Feb 23, 2026
Merged

ulalaca: Don't redefine char16_t and char32_t#3738
matt335672 merged 1 commit intoneutrinolabs:develfrom
matt335672:fix_ulalaca_char16_t

Conversation

@matt335672
Copy link
Member

@matt335672 matt335672 commented Feb 23, 2026

See #3681

On MacOS, stdint.h is provided by the compiler for C, and by the SDK for C++.

OSX 14.4 appears to define char16_t and char32_t within stdint.h for C++. Defining them again results in:

../common/arch.h:53:24: error: cannot combine with previous 'type-name' declaration specifier
typedef uint_least16_t char16_t;
                       ^
../common/arch.h:53:1: warning: typedef requires a name [-Wmissing-declarations]
typedef uint_least16_t char16_t;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/arch.h:54:24: error: cannot combine with previous 'type-name' declaration specifier
typedef uint_least32_t char32_t;
                       ^
../common/arch.h:54:1: warning: typedef requires a name [-Wmissing-declarations]
typedef uint_least32_t char32_t;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On MacOS, stdint.h is provided by the compiler for C, and by
the SDK for C++.

OSX 14.4 appears to define char16_t and char32_t within stdint.h for
C++.  Defining them again results in:

```
../common/arch.h:53:24: error: cannot combine with previous 'type-name' declaration specifier
typedef uint_least16_t char16_t;
                       ^
../common/arch.h:53:1: warning: typedef requires a name [-Wmissing-declarations]
typedef uint_least16_t char16_t;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/arch.h:54:24: error: cannot combine with previous 'type-name' declaration specifier
typedef uint_least32_t char32_t;
                       ^
../common/arch.h:54:1: warning: typedef requires a name [-Wmissing-declarations]
typedef uint_least32_t char32_t;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
@matt335672 matt335672 merged commit 916b6a1 into neutrinolabs:devel Feb 23, 2026
14 checks passed
@matt335672 matt335672 deleted the fix_ulalaca_char16_t branch February 23, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant