summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2007-03-16 22:17:53 +0000
committerTaybin Rutkin <taybin@taybin.com>2007-03-16 22:17:53 +0000
commitd2958b9967c3fd051c941387c0e6fe617a30e344 (patch)
tree6221a106ae55cd8a9d0e0a9d3e9c437842597b12
parent49aaef4914eaa8325603998da38d63bb229b5ddd (diff)
Another fix for building ringbuffer.h with strict-aliasing in XCode.
Removed mutex.h from XCode project. git-svn-id: svn://localhost/ardour2/trunk@1607 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/pbd/macosx/pbd.xcodeproj/project.pbxproj4
-rw-r--r--libs/pbd/pbd/ringbuffer.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/libs/pbd/macosx/pbd.xcodeproj/project.pbxproj b/libs/pbd/macosx/pbd.xcodeproj/project.pbxproj
index 98467067a0..535d16b8a2 100644
--- a/libs/pbd/macosx/pbd.xcodeproj/project.pbxproj
+++ b/libs/pbd/macosx/pbd.xcodeproj/project.pbxproj
@@ -80,7 +80,6 @@
694120D40B8A36A200AF661E /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 694120D30B8A36A200AF661E /* libxml2.dylib */; };
694191980B97CD950083505E /* glibmm.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 694191950B97CD950083505E /* glibmm.framework */; };
694191990B97CD950083505E /* sigc.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 694191960B97CD950083505E /* sigc.framework */; };
- 69741D9A0BA8EF1400FC5029 /* mutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 69741D990BA8EF1400FC5029 /* mutex.h */; settings = {ATTRIBUTES = (Public, ); }; };
69C63C150B9369CB00BC0BCA /* strreplace.cc in Sources */ = {isa = PBXBuildFile; fileRef = 69C63C140B9369CB00BC0BCA /* strreplace.cc */; };
69C63C190B9369DE00BC0BCA /* replace_all.h in Headers */ = {isa = PBXBuildFile; fileRef = 69C63C180B9369DE00BC0BCA /* replace_all.h */; settings = {ATTRIBUTES = (Public, ); }; };
69C63C2B0B936A6E00BC0BCA /* version.cc in Sources */ = {isa = PBXBuildFile; fileRef = 69C63C290B936A6E00BC0BCA /* version.cc */; };
@@ -169,7 +168,6 @@
694120D30B8A36A200AF661E /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /usr/lib/libxml2.dylib; sourceTree = "<absolute>"; };
694191950B97CD950083505E /* glibmm.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = glibmm.framework; path = /Library/Frameworks/glibmm.framework; sourceTree = "<absolute>"; };
694191960B97CD950083505E /* sigc.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = sigc.framework; path = /Library/Frameworks/sigc.framework; sourceTree = "<absolute>"; };
- 69741D990BA8EF1400FC5029 /* mutex.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = mutex.h; path = ../pbd/mutex.h; sourceTree = SOURCE_ROOT; };
69C63C140B9369CB00BC0BCA /* strreplace.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = strreplace.cc; path = ../strreplace.cc; sourceTree = SOURCE_ROOT; };
69C63C180B9369DE00BC0BCA /* replace_all.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = replace_all.h; sourceTree = "<group>"; };
69C63C290B936A6E00BC0BCA /* version.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = version.cc; sourceTree = "<group>"; };
@@ -247,7 +245,6 @@
08FB77ACFE841707C02AAC07 /* Source */ = {
isa = PBXGroup;
children = (
- 69741D990BA8EF1400FC5029 /* mutex.h */,
69C63C140B9369CB00BC0BCA /* strreplace.cc */,
694120270B8A34AB00AF661E /* base_ui.cc */,
694120280B8A34AB00AF661E /* basename.cc */,
@@ -390,7 +387,6 @@
694120A80B8A34AB00AF661E /* undo.h in Headers */,
694120A90B8A34AB00AF661E /* whitespace.h in Headers */,
694120AA0B8A34AB00AF661E /* xml++.h in Headers */,
- 69741D9A0BA8EF1400FC5029 /* mutex.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/libs/pbd/pbd/ringbuffer.h b/libs/pbd/pbd/ringbuffer.h
index f50593bfb7..d98601461e 100644
--- a/libs/pbd/pbd/ringbuffer.h
+++ b/libs/pbd/pbd/ringbuffer.h
@@ -113,8 +113,8 @@ class RingBuffer
protected:
T *buf;
guint size;
- mutable guint write_idx;
- mutable guint read_idx;
+ mutable gint write_idx;
+ mutable gint read_idx;
guint size_mask;
};