Sergiu Dotenco
c7e35f834c
added CMake usage instructions
2016-01-08 15:31:10 +01:00
Sergiu Dotenco
780efcc857
cmake: allow to refer to imported glog target as glog::glog
2016-01-08 14:55:58 +01:00
Sergey Sharybin
f94a49c571
Resolve missing prototype warning
...
Makes compilation process less noisy even when using string compiler flags.
2015-12-31 17:55:37 +05:00
Fumitoshi Ukai
4d391fe692
use namespace GFLAGS_NAMESPACE instead namespace gflags
...
only signalhandler_unittest.cc uses "using namespace gflags".
others use "using namespace GFLAGS_NAMESPACE", so
signalhandler_unittest.cc does the same way.
fixes #62
2015-12-17 16:31:55 +09:00
Fumitoshi Ukai
a63f466c48
win: use _fdopen instead of fdopen
...
The POSIX function fdopen is deprecated.
Use the ISO C++ conformant _fdopen instead.
https://msdn.microsoft.com/library/ms235351.aspx
fixes #73
2015-12-17 15:40:25 +09:00
Fumitoshi Ukai
1256d28554
win: FAILED macro can't be used with HANDLE.
...
FAILED macro is for HRESULT, not for HANDLE.
FindFirstFile returns INVALID_HANDLE_VALUE when error or not found.
https://msdn.microsoft.com/library/windows/desktop/aa364418(v=vs.85).aspx
fixes #79
2015-12-17 15:36:40 +09:00
Fumitoshi Ukai
0312301143
avoid calling new/malloc in signalhandler.
...
FlushLogFilesUnsafe would be called in FailureSignalHandler,
so should avoid calling new/malloc, which are not signal safe.
fixes #78
2015-12-17 15:26:15 +09:00
Fumitoshi Ukai
de75983a81
Merge pull request #74 from yoshisatoyanagisawa/fix_sigabrt_action
...
Reset SIGABRT action only if FailureSignalHandler is installed.
2015-11-27 13:18:55 +09:00
Yoshisato Yanagisawa
cda16b3443
Reset SIGABRT action only if FailureSignalHandler is installed.
...
When I set my own signal handler to SIGABRT, it did not executed
with CHECK. That is because SIGABRT handler is reset to default
just before glog calls abort.
Let me make it reset only if the handler is what glog installed
i.e. FailureSignalHandler.
2015-11-26 16:19:22 +09:00
Fumitoshi Ukai
f46e0745a8
Merge pull request #58 from ruslo/fix.include
...
Fix missing public include directory
2015-11-10 17:11:29 +09:00
Fumitoshi Ukai
0ae958f933
Merge pull request #56 from rhencke/fix-test
...
Fix double-free in unit test on Windows.
2015-11-10 17:10:29 +09:00
Fumitoshi Ukai
013a36bddf
Merge pull request #51 from flandr/pthread-cmake-build
...
Link libpthread when necessary in CMake builds
2015-11-10 17:05:10 +09:00
Ruslan Baratov
ccacef4362
Fix missing public include directory
...
Path "<prefix>/include" will not be added to the headers search of dependent
targets without specifying INSTALL_INTERFACE, i.e. compilation
will fail with error:
"fatal error: 'glog/logging.h' file not found".
2015-09-09 00:33:31 +03:00
Nate Rosenblum
bdb6c3219a
Add pthread library to linker list when needed
2015-09-06 08:09:36 -07:00
Robert Hencke
c10e6ec19c
Fix double-free in unit test on Windows.
...
The LOG_SYSRESULT refers to result twice. Since, in this test,
result expands to FindClose(handle), the handle was being freed twice.
2015-09-06 09:53:22 -04:00
Fumitoshi Ukai
a66751870f
Merge pull request #49 from sergiud/cmake-visibility
...
Fixed warning caused by policy CMP0063 introduced in CMake 3.3
2015-08-12 16:10:40 +09:00
Fumitoshi Ukai
85e5c6edad
Merge pull request #47 from sergiud/master
...
Allow to disable multithreading support using CMake
2015-08-12 16:09:02 +09:00
Fumitoshi Ukai
4dd62b0547
Add Teddy Reed to AUTHORS/CONTRIBUTORS
2015-08-12 16:06:34 +09:00
Fumitoshi Ukai
a94afc6807
Merge pull request #26 from theopolis/feature-mode-flag
...
[#23 ] Add logfile_mode to control logfile permissions
2015-08-12 16:05:28 +09:00
Sergiu Dotenco
ed6dba0bd8
cmake: fixed warning caused by policy CMP0063
2015-08-11 19:00:14 +02:00
Teddy Reed
58438d398f
[ #23 ] Add logfile_mode to control logfile permissions
2015-08-10 16:49:33 -07:00
Sergiu Dotenco
cb5487d901
cmake: allow to disable multithreading support
...
This commit additionally enables threading for win32 by default.
2015-08-08 21:26:17 +02:00
Fumitoshi Ukai
f7691955e8
Merge pull request #35 from bsilver8192/fix-mocklog-unused-arguments
...
Fix mocklog unused arguments
2015-08-06 17:17:55 +09:00
Fumitoshi Ukai
254db0ae1b
Merge pull request #34 from bsilver8192/fix-macro-redefinition
...
Fix redefinition of _XOPEN_SOURCE.
2015-08-06 17:15:44 +09:00
Fumitoshi Ukai
4a1e5ef60c
Add tomange to AUTHORS/CONTRIBUTORS
2015-08-06 17:10:21 +09:00
Fumitoshi Ukai
cd37eec302
Merge pull request #20 from UbimoLTD/patch-1
...
Don't call RAW_VLOG with locking vmodule_lock
SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.
This causes deadlock/segfault.
fixes #29
2015-08-06 17:09:02 +09:00
Fumitoshi Ukai
8db3ff0b75
Merge pull request #12 from ukai/fix_leak
...
delete LogDestination::sinks_ at DeleteLogDestinations().
fixes #8
2015-08-06 16:57:51 +09:00
Fumitoshi Ukai
e91d5c4d02
Add Sergiu Dotenco to AUTHORS/CONTRIBUTORS
2015-08-06 16:55:37 +09:00
Fumitoshi Ukai
fe136448ff
Merge pull request #7 from sergiud/master
...
Add CMake support. closes #4
2015-08-06 16:53:55 +09:00
Fumitoshi Ukai
454906f44b
Add Michael Tanner and tbennun to AUTORS/CONTRIBUTORS
2015-08-06 16:45:44 +09:00
Sergiu Dotenco
8453b0856b
cmake: link to libunwind
2015-07-15 22:35:01 +02:00
Sergiu Dotenco
05746ed702
cmake: support gflags in static builds
2015-07-15 22:35:01 +02:00
Sergiu Dotenco
95cde7af2f
cmake: disabled 'template argument uses unnamed type' warning
2015-07-15 22:35:00 +02:00
Sergiu Dotenco
5aee7c7899
added missing include
2015-07-15 22:35:00 +02:00
Sergiu Dotenco
856ff81a82
fixed vc 14.0 ctp 6 compilation error
2015-07-15 22:34:59 +02:00
Sergiu Dotenco
b561c94b19
determine gflags namespace automatically
2015-07-15 22:34:59 +02:00
Sergiu Dotenco
f9def39a46
do not redefine snprintf if it's already available
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
fa4c5b50a9
do not redefine stl logging macros
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
ea628ae809
allow to define TEST_SRC_DIR as a macro
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
3325258036
allow to use __declspec(noreturn)
2015-07-15 22:34:57 +02:00
Sergiu Dotenco
3d9fea9e84
export the Demangle function
2015-07-15 22:34:57 +02:00
Sergiu Dotenco
3c49b93201
added cmake support
2015-07-15 22:34:44 +02:00
Brian Silverman
beb55fa825
Fix redefinition of _XOPEN_SOURCE.
...
Under Debian Jessie, I get a warning about redefining _XOPEN_SOURCE
which is easy to fix.
2015-06-16 16:50:57 -07:00
Brian Silverman
180eaff781
Fix unused arguments warning in ScopedMockLog.
2015-06-16 16:50:01 -07:00
Brian Silverman
287ab79862
Add Brian Silverman to AUTHORS+CONTRIBUTORS.
2015-06-16 16:49:53 -07:00
romange
2c5038470b
Update vlog_is_on.cc
...
SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.
This causes deadlock/segfault.
2015-04-30 20:28:32 +03:00
Pierre Phaneuf
2a02db7aa5
Add Abhishek Parmar to the AUTHORS/CONTRIBUTORS files.
2015-04-23 11:41:53 +01:00
Fumitoshi Ukai
ed072a55b8
don't remove sinks_ elements.
2015-04-11 00:05:05 +09:00
Abhishek Parmar
701dd7120d
Guard GOOGLE_PREDICT_TRUE|FALS with #ifndef to avoid collision with other google opensource projects like protobuf.
2015-04-08 10:19:06 -07:00
Fumitoshi Ukai
9c2acaaa49
delete LogDestination::sinks_ at DeleteLogDestinations().
...
fixes #8 AddLogSink memory leak
2015-03-27 17:23:20 +09:00