ObjFW  Diff

Differences From Artifact [f1c982e206]:

To Artifact [ae3a81111f]:


22
23
24
25
26
27
28



29
30
31
32
33
34
35
#endif

@implementation OFSocket
#ifdef _WIN32
+ (void)initialize
{
	WSADATA wsa;




	if (WSAStartup(MAKEWORD(2, 0), &wsa))
		@throw [OFInitializationFailedException newWithClass: self];
}
#endif

- init







>
>
>







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#endif

@implementation OFSocket
#ifdef _WIN32
+ (void)initialize
{
	WSADATA wsa;

	if (self != [OFSocket class])
		return;

	if (WSAStartup(MAKEWORD(2, 0), &wsa))
		@throw [OFInitializationFailedException newWithClass: self];
}
#endif

- init