Skip to content

Commit

Permalink
#include "setup.h" moved first of all includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Aug 24, 2000
1 parent 400ca04 commit b6e18f2
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 27 deletions.
3 changes: 2 additions & 1 deletion lib/cookie.c
Expand Up @@ -55,12 +55,13 @@ Example set of cookies:
13-Jun-1988 03:04:55 GMT; domain=.fidelity.com; path=/; secure
****/

#include "setup.h"

#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#include "cookie.h"
#include "setup.h"
#include "getdate.h"
#include "strequal.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/dict.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -49,8 +51,6 @@

#include <errno.h>

#include "setup.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
#include <time.h>
Expand Down
4 changes: 2 additions & 2 deletions lib/download.c
Expand Up @@ -38,12 +38,12 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "setup.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
Expand Down
3 changes: 2 additions & 1 deletion lib/easy.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -49,7 +51,6 @@

#include <errno.h>

#include "setup.h"
#include "strequal.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
Expand Down
4 changes: 2 additions & 2 deletions lib/file.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -49,8 +51,6 @@

#include <errno.h>

#include "setup.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
#include <time.h>
Expand Down
3 changes: 2 additions & 1 deletion lib/formdata.c
Expand Up @@ -49,14 +49,15 @@
*/

#include "setup.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

#include <time.h>

#include "setup.h"
#include <curl/curl.h>
#include "formdata.h"

Expand Down
3 changes: 2 additions & 1 deletion lib/highlevel.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -49,7 +51,6 @@

#include <errno.h>

#include "setup.h"
#include "strequal.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
Expand Down
4 changes: 2 additions & 2 deletions lib/hostip.c
Expand Up @@ -38,12 +38,12 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <string.h>
#include <malloc.h>
#include <errno.h>

#include "setup.h"

#define _REENTRANT

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
Expand Down
3 changes: 2 additions & 1 deletion lib/http.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -49,7 +51,6 @@

#include <errno.h>

#include "setup.h"

#ifdef NEED_REENTRANT
#define _REENTRANT /* Necessary to use in Solaris, since the silly guys at Sun
Expand Down
3 changes: 2 additions & 1 deletion lib/if2ip.c
Expand Up @@ -38,11 +38,12 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "setup.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions lib/ldap.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -48,8 +50,6 @@
#include <sys/stat.h>
#include <errno.h>

#include "setup.h"

#if defined(WIN32) && !defined(__GNUC__)
#else
# ifdef HAVE_UNISTD_H
Expand Down
3 changes: 2 additions & 1 deletion lib/netrc.c
Expand Up @@ -50,11 +50,12 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "setup.h"
#include "getenv.h"
#include "strequal.h"

Expand Down
3 changes: 2 additions & 1 deletion lib/progress.c
Expand Up @@ -38,9 +38,10 @@
* ------------------------------------------------------------
****************************************************************************/

#include <string.h>
#include "setup.h"

#include <string.h>

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#if defined(__MINGW32__)
#include <winsock.h>
Expand Down
4 changes: 2 additions & 2 deletions lib/sendf.c
Expand Up @@ -38,12 +38,12 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

#include "setup.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
Expand Down
2 changes: 2 additions & 0 deletions lib/speedcheck.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdio.h>
#if defined(__MINGW32__)
#include <winsock.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/ssluse.c
Expand Up @@ -43,7 +43,7 @@
* Linas Vepstas <linas@linas.org> and Sampo Kellomaki <sampo@iki.fi>
*/


#include "setup.h"
#include <string.h>
#include <stdlib.h>

Expand Down
4 changes: 2 additions & 2 deletions lib/strequal.c
Expand Up @@ -38,10 +38,10 @@
* ------------------------------------------------------------
****************************************************************************/

#include <string.h>

#include "setup.h"

#include <string.h>

int strequal(const char *first, const char *second)
{
#if defined(HAVE_STRCASECMP)
Expand Down
4 changes: 2 additions & 2 deletions lib/telnet.c
Expand Up @@ -46,6 +46,8 @@
*
****************************************************************************/

#include "setup.h"

/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
Expand All @@ -57,8 +59,6 @@

#include <errno.h>

#include "setup.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
#include <time.h>
Expand Down
4 changes: 3 additions & 1 deletion lib/url.c
Expand Up @@ -39,6 +39,9 @@
****************************************************************************/

/* -- WIN32 approved -- */

#include "setup.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>
Expand All @@ -49,7 +52,6 @@

#include <errno.h>

#include "setup.h"

#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
Expand Down
3 changes: 2 additions & 1 deletion lib/version.c
Expand Up @@ -38,10 +38,11 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <string.h>
#include <stdio.h>

#include "setup.h"
#include <curl/curl.h>
#include "urldata.h"

Expand Down
2 changes: 2 additions & 0 deletions lib/writeout.c
Expand Up @@ -38,6 +38,8 @@
* ------------------------------------------------------------
****************************************************************************/

#include "setup.h"

#include <stdio.h>
#include <string.h>

Expand Down

0 comments on commit b6e18f2

Please sign in to comment.