Skip to content

Commit

Permalink
Remove mostly-unused winclude.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 29, 2019
1 parent 8cae7b4 commit 7742196
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 170 deletions.
9 changes: 6 additions & 3 deletions libnetutil/netutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@

#include "nbase.h"

#ifdef WIN32
#include "mswin32/winclude.h"
#else
#ifndef WIN32
#include <sys/uio.h>
#include <sys/ioctl.h>
#endif
Expand Down Expand Up @@ -173,6 +171,11 @@
# endif
#endif /* Solaris */

#ifdef WIN32
typedef unsigned __int32 u_int32_t;
typedef unsigned __int16 u_int16_t;
typedef unsigned __int8 u_int8_t;
#endif

#if HAVE_NETINET_IN_H
#include <netinet/in.h>
Expand Down
3 changes: 1 addition & 2 deletions mswin32/nmap.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ xcopy /y /d "$(ProjectDir)..\libssh2\win32\$(Configuration)_dll\*.dll" "$(Proje
<ClInclude Include="..\traceroute.h" />
<ClInclude Include="..\utils.h" />
<ClInclude Include="..\xml.h" />
<ClInclude Include="winclude.h" />
<ClInclude Include="winfix.h" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -363,4 +362,4 @@ xcopy /y /d "$(ProjectDir)..\libssh2\win32\$(Configuration)_dll\*.dll" "$(Proje
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
150 changes: 0 additions & 150 deletions mswin32/winclude.h

This file was deleted.

7 changes: 3 additions & 4 deletions mswin32/winfix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,16 @@

/* $Id: */

#include <winclude.h>
#include <shellapi.h>


#include <nmap_winconfig.h>
#include "..\nmap.h"
#include "..\tcpip.h"
#include "winfix.h"
#include "..\NmapOps.h"
#include "..\nmap_error.h"
#include <Packet32.h>

#include <shellapi.h>

#ifdef _MSC_VER
# include <delayimp.h>
#endif
Expand Down
4 changes: 0 additions & 4 deletions nmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@

/************************INCLUDES**********************************/

#ifdef WIN32
#include "mswin32\winclude.h"
#endif

#ifdef HAVE_CONFIG_H
#include "nmap_config.h"
#else
Expand Down
4 changes: 0 additions & 4 deletions nmap_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@
#ifndef NMAP_ERROR_H
#define NMAP_ERROR_H

#ifdef WIN32
#include "mswin32\winclude.h"
#endif

#ifdef HAVE_CONFIG_H
#include "nmap_config.h"
#else
Expand Down
4 changes: 1 addition & 3 deletions services.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@
#ifndef SERVICES_H
#define SERVICES_H

#ifdef WIN32
#include "mswin32\winclude.h"
#else
#ifndef WIN32
#include <netdb.h>
#endif

Expand Down
5 changes: 5 additions & 0 deletions struct_ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ struct ip {
file, so it can be included in a .cc file after other .h have been
included. */

#ifdef WIN32
typedef unsigned __int32 u_int32_t;
typedef unsigned __int16 u_int16_t;
typedef unsigned __int8 u_int8_t;
#endif
/* Linux uses these defines in netinet/ip.h to use the correct struct ip */
#ifndef __FAVOR_BSD
#define __FAVOR_BSD
Expand Down

0 comments on commit 7742196

Please sign in to comment.