Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conditionally compile for osx lion as well as snow leopard #38

Merged
merged 1 commit into from May 16, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

conditionally compile for osx lion as well as snow leopard

  • Loading branch information
ehsanul committed May 15, 2013
commit 724c6f91804010495786dafdfe82bee28ad960dc
@@ -11,6 +11,9 @@ ifeq ($(shell uname -s),Darwin)
ifeq ($(shell sw_vers | grep -c 10.6),1)
RUSTFLAGS += --cfg mac_10_6
endif
ifeq ($(shell sw_vers | grep -c 10.7),1)
RUSTFLAGS += --cfg mac_10_7
endif
endif

RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
4 gl2.rs
@@ -1012,7 +1012,7 @@ pub fn vertex_attrib_pointer_u8(index: GLuint,
}

#[cfg(not(target_os="macos"))]
#[cfg(not(mac_10_6))]
#[cfg(not(mac_10_6), not(mac_10_7))]
pub fn vertex_attrib_divisor(index: GLuint, divisor: GLuint) {
unsafe {
glVertexAttribDivisor(index, divisor);
@@ -1346,7 +1346,7 @@ pub fn glVertexAttrib4fv(indx: GLuint, values: *GLfloat);
pub fn glVertexAttribPointer(indx: GLuint, size: GLint, _type: GLenum, normalized: GLboolean, stride: GLsizei, ptr: *GLvoid);

#[cfg(not(target_os="macos"))]
#[cfg(not(mac_10_6))]
#[cfg(not(mac_10_6), not(mac_10_7))]
pub fn glVertexAttribDivisor(indx: GLuint, divisor: GLuint);

pub fn glViewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.