Skip to content

Commit ad83459

Browse files
committed
LibC: Do not declare main as extern "C"
The linkage of `main` is implementation-defined in C++.
1 parent 6e66b5b commit ad83459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Userland/Libraries/LibC/crt0.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#include <sys/internals.h>
1212
#include <unistd.h>
1313

14-
extern "C" {
15-
1614
int main(int, char**, char**);
1715

16+
extern "C" {
17+
1818
// Tell the compiler that this may be called from somewhere else.
1919
int _entry(int argc, char** argv) __attribute__((used));
2020
void _start(int, char**, char**) __attribute__((used));

0 commit comments

Comments
 (0)