Skip to content
  • Tor Lillqvist's avatar
    New file. · 0457d691
    Tor Lillqvist authored
    	* plug-ins/makefile.msc: New file.
    
    	* plug-ins/*/*.c (Well, not really all files, but many):
     	Portability fixes. Include config.h, and guard inclusion of POSIX
     	and Unix headers like <unistd.h>, <dirent.h> and
     	<sys/time.h>. Include <string.h> if functions from it are
     	used. Use g_ntohl() and g_htonl() insteead of ntohl() and htonl(),
     	thus no need to include <netinet/in.h>. Include <io.h> on Win32
     	when using open/read/write (which actually are defined as
     	_open/_read/_write by glib.h). Define S_* macros if necessary on
     	Win32. Define rint() and M_PI if necessary (these definitions
     	should be factored out somewhere, no sense repeating them in lots
     	of files). Open files in binary mode when needed.
    
    	* plug-ins/FractalExplorer/FractalExplorer.c: Use
     	g_malloc()/g_free(). Use g_strdup_printf().
    
      	* plug-ins/dbbrowser/dbbrowser.c: No need to include <X11/Xlib.h>.
    
    	* plug-ins/destripe/destripe.c: Guard use of SIGBUS.
    
    	* plug-ins/{flame/flame,hrz/hrz,pnm/pnm}.c: No need to check for...
    0457d691