Skip to content

Commit

Permalink
Avoid duplicate pthread_t type definition. NFC (emscripten-core#15137)
Browse files Browse the repository at this point in the history
Instead, simply include the required header.
  • Loading branch information
sbc100 authored Sep 27, 2021
1 parent d6eaf0f commit efd4096
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions system/include/emscripten/html5.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@

#pragma once

#ifdef __cplusplus
#if !defined(__DEFINED_pthread_t)
typedef unsigned long pthread_t;
#define __DEFINED_pthread_t
#endif
#else
#if !defined(__DEFINED_pthread_t)
typedef struct __pthread * pthread_t;
#define __DEFINED_pthread_t
#endif
#endif
#include <pthread.h>

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit efd4096

Please sign in to comment.