Commit 914f79ba authored by Richard Levitte's avatar Richard Levitte
Browse files

Wrap code starting with a definition.

PR: 854
parent 6e944b94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ int RAND_write_file(const char *file)
	int n;
	
#if defined(O_CREAT) && !defined(WIN32)
	{
	/* For some reason Win32 can't write to files created this way */
	
	/* chmod(..., 0600) is too late to protect the file,
@@ -145,6 +146,7 @@ int RAND_write_file(const char *file)
	int fd = open(file, O_CREAT, 0600);
	if (fd != -1)
		out = fdopen(fd, "wb");
	}
#endif
	if (out == NULL)
		out = fopen(file,"wb");