Commit graph

45578 commits

Author SHA1 Message Date
Timo Kreuzer
7cf49f4328 [CRT]
- Replace isinf with !_finite and isnan with _isnan

svn path=/trunk/; revision=50499
2011-01-26 16:28:34 +00:00
Timo Kreuzer
243ce74d82 [AVIFIL32]
Split utf8 resources into theit own file (MSVC compatibility)


svn path=/trunk/; revision=50498
2011-01-26 16:26:42 +00:00
Timo Kreuzer
2508955123 crt header compatibility update:
- define _USE_MATH_DEFINES for dsound, gdiplus, jscript and some win32k files
- don't define HAVE_LRINT(F) in libsamplerate
- Remove M_PI constants from win32k

svn path=/trunk/; revision=50497
2011-01-26 16:24:35 +00:00
Timo Kreuzer
7ad2ae7720 [FREELDR]
Fix compilation on MSVC

svn path=/branches/cmake-bringup/; revision=50496
2011-01-25 22:23:10 +00:00
Timo Kreuzer
81995bfd2e [CRT]
Fix copy pasta. Spotted by rs on irc.

svn path=/branches/cmake-bringup/; revision=50495
2011-01-25 20:56:14 +00:00
Timo Kreuzer
0fab7e8671 [CRT]
On MSVC mark abs, labs and strcmp as intrinsics (needed when compiling with /O2+) and disable a warning that they are not intrinsics (when compiled with /O1)

svn path=/branches/cmake-bringup/; revision=50494
2011-01-25 20:48:56 +00:00
Timo Kreuzer
6b8ea6b64e [CMAKE]
Link smss to msvcsup on MSVC builds


svn path=/branches/cmake-bringup/; revision=50493
2011-01-25 19:19:02 +00:00
Timo Kreuzer
f9870b513e [PSDK]
Include pseh.h not only for gcc

svn path=/branches/cmake-bringup/; revision=50492
2011-01-25 18:58:21 +00:00
Timo Kreuzer
5a73dc4e58 [RTL]
Add InterlockedBitTestAndSet* defines

svn path=/branches/cmake-bringup/; revision=50491
2011-01-25 18:48:26 +00:00
Timo Kreuzer
67e321c158 [CMAKE]
- Fix mc command
- temporary disable optimization settings to prevent warning

svn path=/branches/cmake-bringup/; revision=50490
2011-01-25 18:09:29 +00:00
Timo Kreuzer
14bde089ab [CMAKE]
Don't include resources twice in findstr, remove rbuild file

svn path=/branches/cmake-bringup/; revision=50489
2011-01-25 17:00:43 +00:00
Timo Kreuzer
f4dd5fd0c6 [CMAKE]
msc.cmake: fix spec2def invocation, add pseh library, remove set_export_spec

svn path=/branches/cmake-bringup/; revision=50488
2011-01-25 16:31:04 +00:00
Timo Kreuzer
45cb5eb141 [CMAKE]
On MSVC builds, compile native SEH support into PSEH library.
This should be part of the crt, but our crt is too disorganized to handle that. The empty C file is for cmake to get the library right.

svn path=/branches/cmake-bringup/; revision=50486
2011-01-25 16:26:54 +00:00
Timo Kreuzer
0c480c0cb2 [KERNEL32]
Escape some characters in nls files for MSVC compatibility

svn path=/branches/cmake-bringup/; revision=50485
2011-01-25 14:40:32 +00:00
Timo Kreuzer
50c1320ff9 [CMAKE]
Fix return type of NdrClientCall*

svn path=/branches/cmake-bringup/; revision=50484
2011-01-25 11:55:45 +00:00
Timo Kreuzer
87ab59ef61 [CRT]
Implement __SEH_epilog

svn path=/branches/cmake-bringup/; revision=50483
2011-01-25 09:33:37 +00:00
Timo Kreuzer
776c09f1fd [CRT]
Implement ms compatible __SEH_prolog

svn path=/branches/cmake-bringup/; revision=50482
2011-01-25 01:28:41 +00:00
Timo Kreuzer
54759c40ba [CMAKE]
Fix rostests after changing macros

svn path=/trunk/; revision=50481
2011-01-24 21:20:04 +00:00
Timo Kreuzer
d5fecffd28 [NTDLL]
Fix some exports by marking them as fastcall instead of prepending an @ to the name

svn path=/branches/cmake-bringup/; revision=50480
2011-01-24 20:24:35 +00:00
Timo Kreuzer
d3f4900a66 [CRT]
compile memcmp, abs and labs on MSVC, too.

svn path=/branches/cmake-bringup/; revision=50479
2011-01-24 19:50:01 +00:00
Timo Kreuzer
0d54e35b94 [CMAKE]
Refactor IDL compilation:
- Move all macros to idl-support.cmake
- Make rpc proxy a static library, instead of fiddeling with SOURCE variable
- Merge client and server rpc libraries into one library
- Reorder global makelist file a little
- Improve configure script
- Improve naming, use add_* when a target is added, generate_* when only a file is generated
- Don't compile wbemcli.idl on MSVC (temp hack)
- Don't compile rossym on MSVC, we don't use it
- Use ml64 as assembler when compiling for amd64
- fix spec2def invocation

svn path=/branches/cmake-bringup/; revision=50478
2011-01-24 18:13:40 +00:00
Aleksey Bragin
311184a8fa - Remove undocumented defines from winuser.h and include undocuser.h when _WINE is defined.
svn path=/trunk/; revision=50477
2011-01-24 12:58:51 +00:00
Roel Messiant
6c6117766d [NTOS]
- Only update the System Page Directory when expanding the paged pool. Fixes the PointerPde asserts.
  On paged pool expansion, the system page directory and the process page directory of the calling process were updated.
  When updating the process page directory, an assert made sure the PDE that got written was invalid.

  In case of the System process, both page directories are located on the same physical page.
  So when this process expanded the paged pool, the system page directory update automagically
  updated the process page directory too.  The assert therefore triggered.

  Not explicitly updating the process page directory will result in a page fault later on, which is
  handled by copying the required PDE from the system page directory to the process page directory.

  Rumour has it this fix is incorrect because "something's wrong with the System PDE stuff".  The lack
  of any further info however leads to this change and explanation.

svn path=/trunk/; revision=50475
2011-01-23 19:27:13 +00:00
Eric Kohl
ce2570f468 [NPFS]
Check if the whole pipe name fits into the return buffer. Return STATUS_BUFFER_OVERFLOW if it does not fit and copy only a part of the file name in this case.

svn path=/trunk/; revision=50474
2011-01-23 14:41:07 +00:00
Sylvain Petreolle
256c5c72c0 [CMAKE]
WIN32: get build date without overcomplicated string parsing.

svn path=/branches/cmake-bringup/; revision=50473
2011-01-23 13:10:14 +00:00
Sylvain Petreolle
9fb04fdf80 [CMAKE]
Fix buildno.h when subversion is not installed.

svn path=/branches/cmake-bringup/; revision=50472
2011-01-23 11:27:01 +00:00
Timo Kreuzer
4dbcb77b8f [CRT]
fix definition of _crt_va_arg for amd64

svn path=/branches/cmake-bringup/; revision=50471
2011-01-22 23:22:10 +00:00
Timo Kreuzer
5f6e050626 - _mingw.h: Don't define USE_MINGW_SETJMP_TWO_ARGS for MSVC
- _mingw.h: Fix definition of _CRT_ALIGN for MSVC
- intrin.h: _InterlockedAddLargeStatistic is not an intrinsic on MSVC for x64
- intrin.h: Fix return type of _InterlockedOr64
- wdm.h: Fix warnings in KfRaiseIrql and RtlExtendedMagicDivide inline implementations
- winnt.h: Simplify definition of GetCurrentFiber

svn path=/branches/cmake-bringup/; revision=50470
2011-01-22 19:17:10 +00:00
Timo Kreuzer
1fb963feea [CMAKE]
Remove _M_AXP64 definition

svn path=/branches/cmake-bringup/; revision=50469
2011-01-22 18:41:33 +00:00
Eric Kohl
8b8fbc77af [SETUPAPI]
Fix a warning.

svn path=/trunk/; revision=50468
2011-01-22 18:16:12 +00:00
Timo Kreuzer
e212d018ae [CMAKE]
Copy vadefs.h from amd64 branch

svn path=/branches/cmake-bringup/; revision=50467
2011-01-22 17:52:33 +00:00
Timo Kreuzer
a3604ffda3 [CMAKE]
- lowerize ARCH string (fixes cmlib)
- move definition

svn path=/branches/cmake-bringup/; revision=50465
2011-01-22 17:13:06 +00:00
Timo Kreuzer
83fb618aba [CMAKE]
Don't set lib pathes in msc toolchain file. Fixes amd64

svn path=/branches/cmake-bringup/; revision=50464
2011-01-22 16:26:37 +00:00
Timo Kreuzer
9ea0f74e9d [CMAKE]
Fix and improve configure script

svn path=/branches/cmake-bringup/; revision=50463
2011-01-22 16:25:35 +00:00
Timo Kreuzer
e3a47f88a8 [CMAKE]
Fix configure script for MSVC

svn path=/branches/cmake-bringup/; revision=50462
2011-01-22 16:05:07 +00:00
Eric Kohl
f6b450f16a [SETUPAPI]
- Implement CMP_WaitServicesAvailable().
- CM_Get_First_Log_Conf_Ex(): Create a LOG_CONF_INFO struct only if plcLogConf is not NULL. 

svn path=/trunk/; revision=50461
2011-01-22 15:43:57 +00:00
Timo Kreuzer
d7420c8060 [FREELDR]
compile headless support only for x86

svn path=/trunk/; revision=50459
2011-01-22 09:47:20 +00:00
Timo Kreuzer
a89924e2bd [NTOSKRNL]
MiAddressToPte translates a virtual address to the corresponding PTE, MiAddressToPde to the corresponding PDE. MiPteToAddress is the inverse of MiAddressToPte and translates from a PTE to the virtual address. MiPdeToAddress broke this scheme and didn't calculate the corresponding virtual adress, but the adress of the page table. Fix this inconsistency by renaming the macro to MiPdeToPte and adding a fixed MiPdeToAddress. All references fixed accordingly.

svn path=/trunk/; revision=50458
2011-01-22 09:43:52 +00:00
Timo Kreuzer
e62f89f35b [INTRIN]
- Implement _mm_sfence, _mm_lfence, __faststorefence (for amd64)
- Don't use __sync_synchronize() for _ReadWriteBarrier, as it issues an mfence instruction and this is not what we want
- Remove "BUGBUG" comment, because the fact that _ReadBarrier and _WriteBarrier are full (compiler) barriers isn't critical.

svn path=/trunk/; revision=50456
2011-01-21 20:56:36 +00:00
Sylvain Petreolle
029f4fd445 [CMAKE]
Forgotten deletion in previous commit.

svn path=/branches/cmake-bringup/; revision=50455
2011-01-21 20:37:01 +00:00
Sylvain Petreolle
5f1a2314f2 [CMAKE]
Use cmake subversion capabilities to generate buildno.h and version.h.

svn path=/branches/cmake-bringup/; revision=50454
2011-01-21 20:29:45 +00:00
Eric Kohl
313c5318b3 [NPFS]
Initialize only the required parts of the return buffer. This will enable the driver to return information about multiple pipes in a single request.

svn path=/trunk/; revision=50452
2011-01-20 21:48:06 +00:00
Timo Kreuzer
1da8f22b84 [ROSSYM]
The function dexec uses the varable p only in one location where its checked against nil, It neither initialized, not used anywhere else. This is probably a typo and b->p was meant. Yes I'm completely guessing, but this code doesn't give any other chance then guessing and it will probably not be worse then using an uninitialized variable...
@original author: please review.

svn path=/branches/cmake-bringup/; revision=50450
2011-01-20 15:39:55 +00:00
Timo Kreuzer
0eada29ab7 [CMAKE]
Disable format warnings for winetest_ok

svn path=/branches/cmake-bringup/; revision=50449
2011-01-20 14:30:15 +00:00
Timo Kreuzer
35e02b21b1 [CMAKE]
cast some fprintf parameters explicitly to the required type to fix warnings.

svn path=/branches/cmake-bringup/; revision=50448
2011-01-20 12:53:47 +00:00
Timo Kreuzer
9f0220b25e [CMAKE]
Define __ROS_LONG64__ for all winetests

svn path=/trunk/; revision=50447
2011-01-20 12:52:41 +00:00
Amine Khaldi
4b35cf7b8b [CMAKE]
- Revert r50441. Please note that the recent revisions around this define are for testing.

svn path=/trunk/; revision=50444
2011-01-19 19:01:37 +00:00
Timo Kreuzer
87100588dc [GDI32]
Fix broken portable implementation of _lrintf, 2nd try :)

svn path=/trunk/; revision=50443
2011-01-19 18:10:50 +00:00
Timo Kreuzer
8c35fc79b8 [GDI32]
Fix broken portable implementation of _lrintf

svn path=/trunk/; revision=50442
2011-01-19 18:10:08 +00:00
Amine Khaldi
d0f0bdb64b [CMAKE]
- Add __WINESRC__ definition to all winetests.

svn path=/trunk/; revision=50441
2011-01-19 17:51:43 +00:00