@@ -133,18 +133,6 @@ typedef pthread_mutex_t webui_mutex_t;
133133typedef pthread_cond_t webui_condition_t ;
134134#endif
135135
136- // Optimization
137- #if defined(__clang__ ) || defined(__GNUC__ )
138- #define WEBUI_DISABLE_OPTIMIZATION_START _Pragma("GCC optimize (\"O0\")")
139- #define WEBUI_DISABLE_OPTIMIZATION_END
140- #elif defined(_MSC_VER )
141- #define WEBUI_DISABLE_OPTIMIZATION_START __pragma(optimize("", off))
142- #define WEBUI_DISABLE_OPTIMIZATION_END __pragma(optimize("", on))
143- #else
144- #define WEBUI_DISABLE_OPTIMIZATION_START
145- #define WEBUI_DISABLE_OPTIMIZATION_END
146- #endif
147-
148136// Compiler
149137#if defined(_MSC_VER )
150138 #define WEBUI_COMPILER "MSVC"
@@ -875,7 +863,6 @@ bool webui_script(size_t window, const char* script, size_t timeout,
875863 return webui_script_client (& e , script , timeout , buffer , buffer_length );
876864}
877865
878- WEBUI_DISABLE_OPTIMIZATION_START
879866static uint32_t _webui_generate_random_uint32 () {
880867 uint32_t timestamp = (uint32_t ) time (NULL );
881868 // Get the higher 16 bits
@@ -885,7 +872,6 @@ static uint32_t _webui_generate_random_uint32() {
885872 // Combine
886873 return (high << 16 ) | low ;
887874}
888- WEBUI_DISABLE_OPTIMIZATION_END
889875
890876size_t webui_new_window (void ) {
891877
@@ -5076,7 +5062,7 @@ static void _webui_send_client(
50765062 size_t connection_id = 0 ;
50775063 if (!_webui_connection_get_id (win , client , & connection_id ))
50785064 return ;
5079- if (( _webui .clients [connection_id ] == NULL ) )
5065+ if (_webui .clients [connection_id ] == NULL )
50805066 return ;
50815067
50825068 // Check Token
0 commit comments