ObjFW  Diff

Differences From Artifact [a5886ec856]:

To Artifact [fd16b773e1]:


213
214
215
216
217
218
219
220
221
222
223

224

225

226

227
228
229
230
231
232
233
	}

#if defined(_WIN32)
	SYSTEM_INFO si;
	GetSystemInfo(&si);
	of_pagesize = si.dwPageSize;
	of_num_cpus = si.dwNumberOfProcessors;
#elif defined(_PSP)
	of_pagesize = 4096;
	of_num_cpus = 1;
#else

	if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1)

		of_pagesize = 4096;

	if ((of_num_cpus = sysconf(_SC_NPROCESSORS_CONF)) < 1)

		of_num_cpus = 1;
#endif
}

+ (void)initialize
{
}







<
<
<

>

>

>

>







213
214
215
216
217
218
219



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
	}

#if defined(_WIN32)
	SYSTEM_INFO si;
	GetSystemInfo(&si);
	of_pagesize = si.dwPageSize;
	of_num_cpus = si.dwNumberOfProcessors;



#else
# ifdef _SC_PAGESIZE
	if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1)
# endif
		of_pagesize = 4096;
# ifdef _SC_NPROCESSORS_CONF
	if ((of_num_cpus = sysconf(_SC_NPROCESSORS_CONF)) < 1)
# endif
		of_num_cpus = 1;
#endif
}

+ (void)initialize
{
}