Mercurial > audlegacy-plugins
comparison src/wma/libffwma/mem.c @ 963:9549fea94794 trunk
[svn] Warning fixes from SuSe.
author | chainsaw |
---|---|
date | Tue, 17 Apr 2007 14:45:19 -0700 |
parents | aa044d71838f |
children |
comparison
equal
deleted
inserted
replaced
962:9f0ac3bb82f4 | 963:9549fea94794 |
---|---|
44 void *av_malloc(unsigned int size) | 44 void *av_malloc(unsigned int size) |
45 { | 45 { |
46 void *ptr; | 46 void *ptr; |
47 | 47 |
48 #ifdef __GLIBC__ | 48 #ifdef __GLIBC__ |
49 posix_memalign(&ptr, 16, size); | 49 if(posix_memalign(&ptr, 16, size)) |
50 return NULL; | |
50 #else | 51 #else |
51 ptr = malloc(size); | 52 ptr = malloc(size); |
52 #endif | 53 #endif |
53 | 54 |
54 return ptr; | 55 return ptr; |