# define CURL_DISABLE_HEADERS_API 1
# define CURL_DISABLE_HSTS 1
# define CURL_DISABLE_HTTP_AUTH 1
+# ifndef CURL_DISABLE_WEBSOCKETS
+# define CURL_DISABLE_WEBSOCKETS /* no WebSockets without HTTP present */
+# endif
#endif
/* ================================================================ */
#include "curl_setup.h"
#include "urldata.h"
-#ifdef CURL_DISABLE_HTTP
-/* no WebSockets without HTTP present */
-#undef CURL_DISABLE_WEBSOCKETS
-#define CURL_DISABLE_WEBSOCKETS 1
-#endif
-
#ifndef CURL_DISABLE_WEBSOCKETS
#include "url.h"