Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3346132a
Commit
3346132a
authored
May 14, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Don't build unneeded code for Windows platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
351bd330
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
2 deletions
+34
-2
delay_load.c
dlls/winecrt0/delay_load.c
+4
-0
dll_entry.c
dlls/winecrt0/dll_entry.c
+4
-0
drv_entry.c
dlls/winecrt0/drv_entry.c
+4
-0
exe16_entry.c
dlls/winecrt0/exe16_entry.c
+2
-2
exe_entry.c
dlls/winecrt0/exe_entry.c
+4
-0
exe_main.c
dlls/winecrt0/exe_main.c
+4
-0
exe_wentry.c
dlls/winecrt0/exe_wentry.c
+4
-0
exe_wmain.c
dlls/winecrt0/exe_wmain.c
+4
-0
init.c
dlls/winecrt0/init.c
+4
-0
No files found.
dlls/winecrt0/delay_load.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -61,3 +63,5 @@ static void free_delay_imports(void)
...
@@ -61,3 +63,5 @@ static void free_delay_imports(void)
if
(
*
descr
->
phmod
)
FreeLibrary
(
*
descr
->
phmod
);
if
(
*
descr
->
phmod
)
FreeLibrary
(
*
descr
->
phmod
);
}
}
#endif
#endif
#endif
/* _WIN32 */
dlls/winecrt0/dll_entry.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -43,3 +45,5 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
...
@@ -43,3 +45,5 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
return
ret
;
return
ret
;
}
}
#endif
/* _WIN32 */
dlls/winecrt0/drv_entry.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winternl.h"
#include "winternl.h"
...
@@ -35,3 +37,5 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
...
@@ -35,3 +37,5 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
return
DriverEntry
(
obj
,
path
);
return
DriverEntry
(
obj
,
path
);
/* there is no detach routine so we can't call destructors */
/* there is no detach routine so we can't call destructors */
}
}
#endif
/* _WIN32 */
dlls/winecrt0/exe16_entry.c
View file @
3346132a
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#if defined(__i386__) && !defined(_WIN32)
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "wownt32.h"
#include "wownt32.h"
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#ifdef __i386__
extern
WORD
WINAPI
WinMain16
(
HINSTANCE16
inst
,
HINSTANCE16
prev
,
LPSTR
cmdline
,
WORD
show
);
extern
WORD
WINAPI
WinMain16
(
HINSTANCE16
inst
,
HINSTANCE16
prev
,
LPSTR
cmdline
,
WORD
show
);
void
WINAPI
DECLSPEC_HIDDEN
__wine_spec_exe16_entry
(
CONTEXT
*
context
)
void
WINAPI
DECLSPEC_HIDDEN
__wine_spec_exe16_entry
(
CONTEXT
*
context
)
...
...
dlls/winecrt0/exe_entry.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -37,3 +39,5 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
...
@@ -37,3 +39,5 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
if
(
needs_init
)
_fini
();
if
(
needs_init
)
_fini
();
ExitProcess
(
ret
);
ExitProcess
(
ret
);
}
}
#endif
/* _WIN32 */
dlls/winecrt0/exe_main.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -48,3 +50,5 @@ int main( int argc, char *argv[] )
...
@@ -48,3 +50,5 @@ int main( int argc, char *argv[] )
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
return
WinMain
(
GetModuleHandleA
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
return
WinMain
(
GetModuleHandleA
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
}
}
#endif
/* _WIN32 */
dlls/winecrt0/exe_wentry.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -37,3 +39,5 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
...
@@ -37,3 +39,5 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
if
(
needs_init
)
_fini
();
if
(
needs_init
)
_fini
();
ExitProcess
(
ret
);
ExitProcess
(
ret
);
}
}
#endif
/* _WIN32 */
dlls/winecrt0/exe_wmain.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -50,3 +52,5 @@ int wmain( int argc, WCHAR *argv[] )
...
@@ -50,3 +52,5 @@ int wmain( int argc, WCHAR *argv[] )
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
return
wWinMain
(
GetModuleHandleW
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
return
wWinMain
(
GetModuleHandleW
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
}
}
#endif
/* _WIN32 */
dlls/winecrt0/init.c
View file @
3346132a
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#ifndef _WIN32
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
...
@@ -40,3 +42,5 @@ void DECLSPEC_HIDDEN __wine_spec_init_ctor(void)
...
@@ -40,3 +42,5 @@ void DECLSPEC_HIDDEN __wine_spec_init_ctor(void)
if
(
__wine_spec_init_state
==
NO_INIT_DONE
)
__wine_spec_init
();
if
(
__wine_spec_init_state
==
NO_INIT_DONE
)
__wine_spec_init
();
__wine_spec_init_state
=
CONSTRUCTORS_DONE
;
__wine_spec_init_state
=
CONSTRUCTORS_DONE
;
}
}
#endif
/* _WIN32 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment