Browse Source

linux-v4l2: Mark aarch64 and mips n64 as known platform

Aarch64 and MIPS N64 ABI are safe to the uint to long cast.

Signed-off-by: Jiaxun Yang <[email protected]>
Jiaxun Yang 5 years ago
parent
commit
af062863ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/linux-v4l2/v4l2-controls.c

+ 1 - 1
plugins/linux-v4l2/v4l2-controls.c

@@ -27,7 +27,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #if defined(__i386__)
 #define UINT_TO_POINTER(val) ((void *)(unsigned int)(val))
 #define POINTER_TO_UINT(p) ((unsigned int)(unsigned int)(p))
-#elif defined(__x86_64__)
+#elif defined(__x86_64__) || defined(__aarch64__) || (_MIPS_SIM == _ABI64)
 #define UINT_TO_POINTER(val) ((void *)(unsigned long)(val))
 #define POINTER_TO_UINT(p) ((unsigned int)(unsigned long)(p))
 #else