Commit Graph

8 Commits

Author SHA1 Message Date
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
davidebeatrici
7286fb0f68 Determine correct pointer size automatically, without the need of specific headers and variables
This commit removes the architecture-specific headers, by keeping only the OS-specific ones.
The different headers were needed to keep the legacy Windows header, after we created the "procptr32_t" (4 bytes) and "procptr64_t" (8 bytes) variables.
We created these variables because the "peekProc" functions read as many bytes as the variable can hold. A pointer is 4 bytes on 32 bit platforms and 8 bytes on 64 bit ones.

Now there's a new variable, called "procptr_t" and with a size of 8 bytes (unsigned long long).
We had a "peekProc" template function which returned the value stored at the specified memory address, but it has been used only to read pointers so far.
Since we needed a new function that checks the process architecture and sets the correct size of the memory to read, I decided to "recycle" it.
2017-11-19 21:48:49 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Davide Beatrici
685b5d6c17 plugins: fix compile error on Linux
This fixes #2615, introduced by #2611.
2016-11-03 16:25:57 +01:00
Mikkel Krautz
2a049e6cd9 mumble_plugin_linux.h: align API of the Windows and Linux plugin headers. 2016-08-13 10:04:12 +00:00
Mikkel Krautz
5b5167646d pugins/mumble_plugin_linux.h: convert C-style casts to C++-style casts. 2016-08-12 20:37:31 +00:00
Mikkel Krautz
ee0c6a2739 plugins/mumble_plugin_linux.h: use non-C++11 std::ifstream::open().
Fixes the C++03 build.
2016-08-12 20:36:20 +00:00
davidebeatrici
2da60f96e0 Linux support for positional audio plugins 2016-08-11 20:53:10 +02:00