Provided herein are pharmaceutical compositions, such as emulsions and nanosuspensions, comprising a CRAC channel inhibitor. Also provided herein are methods of treating pancreatitis, viral infections, stroke, traumatic brain injury, fibrosis, inflammation, and autoimmune diseases by administering such pharmaceutical compositions.